Skip to main content

SetBullet

Sets the bullet or numbering to the current paragraph.

Inherited from ApiParaPr.SetBullet.

Example

Add a bullet marker to a paragraph inside a shape in a spreadsheet.

// How do I prepend a dash or symbol to lines of text in a paragraph in a spreadsheet?

// Mark each paragraph entry with a custom bullet character to create a visual list in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let fill = Api.CreateSolidFill(Api.RGB(255, 111, 61));
let stroke = Api.CreateStroke(0, Api.CreateNoFill());
let shape = worksheet.AddShape("flowChartOnlineStorage", 120 * 36000, 35 * 36000, fill, stroke, 0, 2 * 36000, 0, 3 * 36000);
let content = shape.GetContent();
let paragraph = content.GetElement(0);
let paraPr = paragraph.GetParaPr();
let bullet = Api.CreateBullet("-");
paraPr.SetBullet(bullet);
paragraph.AddText(" This is an example of the bulleted paragraph.");