How to Add Bullets in PowerPoint


username

See the screenshot below : http://imagizer.imageshack.us/a/img844/4241/at9t.jpg ... this is from Powerpoint. There you can change bullets. But I have created a Powerpoint add-in and I need to change the bullets in c#.

This is how to add the first bullet (small black circle), but I want to add other bullets (large white circle or whatever). How can I do this?

char myCharacter = (char)9675; // white circle unicode
textRange.Paragraphs(i).ParagraphFormat.Bullet.Character = myCharacter;
textRange.Paragraphs(i).ParagraphFormat.Bullet.Type = PpBulletType.ppBulletUnnumbered;

This is Microsoft's webpage, but I can't see any useful information. http://msdn.microsoft.com/en-us/library/microsoft.office.interop.powerpoint.ppbullettype(v=office.14).aspx

mipen

Have you tried BulletFormat.Character ?

Returns or sets the Unicode character value used for bullets in the specified text. read/write.

int Character { get; set; }

If you want to represent unicode9675 with a white circle icon , you can cast the number to char as shown in this example or the concept code below.

char myCharacter= (char) 9675; // white circle unicode
textRange.Paragraphs(i).ParagraphFormat.Bullet.Character = myCharacter;

complete example

Since it doesn't work on your end, I created an example that does the job. Let me know if you have any other questions.

// Create the Presentation File
Application pptApplication = new Application();
Presentation pptPresentation = pptApplication.Presentations.Add(MsoTriState.msoTrue);
CustomLayout customLayout = pptPresentation.SlideMaster.CustomLayouts[PpSlideLayout.ppLayoutText];

// Create new Slide
var slides = pptPresentation.Slides;
var slide = slides.AddSlide(1, customLayout);

// Add title
slide.Shapes[1].TextFrame.TextRange.Text = "Title of slide.com";

// Add items to list
var bulletedList = slide.Shapes[2]; // Bulleted point shape
var listTextRange = bulletedList.TextFrame.TextRange;
listTextRange.Text = "Content goes here\nYou can add text\nItem 3";

// Change the bullet character
var format = listTextRange.Paragraphs().ParagraphFormat;
format.Bullet.Character = (char)9675;

pptPresentation.SaveAs(@"c:\temp\fppt.pptx", PpSaveAsFileType.ppSaveAsDefault, MsoTriState.msoTrue);
pptPresentation.Close();
pptApplication.Quit();

Related


How to Add Bullets in Powerpoint

username See the screenshot below : http://imagizer.imageshack.us/a/img844/4241/at9t.jpg ... this is from Powerpoint. There you can change bullets. But I have created a Powerpoint add-in and I need to change the bullets in c#. This is how to add the first bull

How to Add Bullets in Powerpoint

username See the screenshot below : http://imagizer.imageshack.us/a/img844/4241/at9t.jpg ... this is from Powerpoint. There you can change bullets. But I have created a Powerpoint add-in and I need to change the bullets in c#. This is how to add the first bull

How to add bullets in TextView?

Men's I have a TextView and I want to add bullets to the text via XML. is it possible? Benny Skogberg You must use the correct character encoding to achieve this effect. you can try• Updates Just to clarify: for setText("\u2022 Bullet");adding bullets pr

How to add bullets in TextView?

Men's I have a TextView and I want to add bullets to the text via XML. is it possible? Benny Skogberg You must use the correct character encoding to achieve this effect. you can try• Updates Just to clarify: for setText("\u2022 Bullet");adding bullets pr

How to Move Bullets Closer to Text in Powerpoint

grey cloud How to move bullets closer to text in Powerpoint 2007? I want the gap to be half of what it is by default. Mehper C. The amount of space between bullets and text is controlled by the indent setting. Make sure the rulers are displayed (View > Show/Hi

How to Move Bullets Closer to Text in Powerpoint

grey cloud How to move bullets closer to text in Powerpoint 2007? I want the gap to be half of what it is by default. Mehper C. The amount of space between bullets and text is controlled by the indent setting. Make sure the rulers are displayed (View > Show/Hi

How to add custom bullets to tinyMCE?

Ennio I would like to add some extra options to the bullet dropdown in tinyMCE, is this possible? I would like to add ►Bullet type and different color options. (red, blue, etc...) username Yes. In the tinyMCE configuration you need to specify: style_formats: [

How to add custom bullets to tinyMCE?

Ennio I would like to add some extra options to the bullet dropdown in tinyMCE, is this possible? I would like to add ►Bullet type and different color options. (red, blue, etc...) username Yes. In the tinyMCE configuration you need to specify: style_formats: [

How to add unindented bullets in RMarkdown

ABC4D Can you help me figure out how to add some unindented bullets in RMarkdown ? I tried it in the Rmd file below, where • abc is from copy-paste, and * abc should be what I want, but it auto - indents: Should the point position be at the same level as the t

How to add custom bullets to tinyMCE?

Ennio I would like to add some extra options to the bullet dropdown in tinyMCE, is this possible? I would like to add ►Bullet type and different color options. (red, blue, etc...) username yes. In the tinyMCE configuration you need to specify: style_formats: [

PowerPoint "Bullets and Numbering" is broken

on Issue with bullets not displaying correctly in PowerPoint 2016 on Windows 7; both are fully patched. What I've tried so far (in order): Replacing the font directory from a running computer - no luck ran "restore default font settings" - no luck Repair Offic

PowerPoint "Bullets and Numbering" is broken

on Issue with bullets not displaying correctly in PowerPoint 2016 on Windows 7; both are fully patched. What I've tried so far (in order): Replacing the font directory from a running computer - no luck ran "restore default font settings" - no luck Repair Offic

How to add bullets to email body in Java

Yusuf In my project I am using Servlet/JSP to send emails. I want to add bullets to the body of the message when sending it. Here is my code. Servlet.java: protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,

How to add bullets in text view in android

username It's hard to explain, I don't really know how to speak English, so I have a screenshot showing what I mean. The image below is the image I want to display in the layout, I am asking if anyone knows how to create that image in my text. If you need any

How to add bullets in text view in android

username It's hard to explain, I don't really know how to speak English, so I have a screenshot showing what I mean. The image below is the image I want to display in the layout, I am asking if anyone knows how to create that image in my text. If you need any

How to add bullets to email body in Java

Yusuf In my project I am using Servlet/JSP to send emails. I want to add bullets to the body of the message when sending it. Here is my code. Servlet.java: protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,

How to add bullets to email body in Java

Yusuf In my project I am using Servlet/JSP to send emails. I want to add bullets to the body of the message when sending it. Here is my code. Servlet.java: protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,

How to Change Default Bullets and Add Images

Asim Taha Aziz I'm new to css and I'm trying to change the bullet style for ul>li like this: Sorry for the poor quality image, it's a green tick inside a circle . My code so far is: ul { display: flex; flex-direction: column; list-style-type: squar

How to add bullets to email body in Java

Yusuf In my project I am using Servlet/JSP to send emails. I want to add bullets to the body of the message when sending it. Here is my code. Servlet.java: protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,

How to add bullets to email body in Java

Yusuf In my project I am using Servlet/JSP to send emails. I want to add bullets to the body of the message when sending it. Here is my code. Servlet.java: protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,

VBA - PowerPoint - Insert Custom Bullets

Naxos I hope you are doing well. I am trying to create a code to insert the following bullets in a selected textbox The font used is Wingdings and the characters are 140 141 142 143 144 145 146 147 148 I try to use the following code: Sub bulletlist() With