Hello!
Is there a way to set a default size on the bullets? In a way that is independent of the portions, I mean? I tried something, but the size of bullet is proportional to size of text in the portion. I want to make it independent of the size of portion.
I have attached the code sample and the image of the output here.
Please help me. Thanks in advance.
Code Sample:
m_secondPresentation = new Presentation();
var autoShape = m_secondPresentation.Slides[0].Shapes.AddAutoShape(ShapeType.Rectangle, 0, 0, m_secondPresentation.SlideSize.Size.Width, m_secondPresentation.SlideSize.Size.Height);
autoShape.UseBackgroundFill = true;
autoShape.AddTextFrame("");
autoShape.UseBackgroundFill = true;
var frame = autoShape.TextFrame;
var somePara = new Paragraph();
somePara.ParagraphFormat.Bullet.Type = BulletType.Symbol;
somePara.ParagraphFormat.Bullet.IsBulletHardColor= NullableBool.False;
somePara.ParagraphFormat.Bullet.IsBulletHardFont = NullableBool.False;
var point1 = new Portion("some Point1");
var point2 = new Portion(" some Point2");
point2.PortionFormat.FontBold = NullableBool.True;
var newline = new Portion("\n");
var portion3 = new Portion("portion with no bold");
portion3.PortionFormat.FontHeight = 40.0f;
somePara.Portions.Add(point1);
somePara.Portions.Add(point2);
somePara.Portions.Add(newline);
somePara.Portions.Add(portion3);
somePara.ParagraphFormat.SpaceBefore = -3.5f;
somePara.ParagraphFormat.SpaceAfter = -3.5f;
somePara.ParagraphFormat.SpaceWithin = -12.0f;
frame.Paragraphs.Add(somePara);
bullet-example.PNG (4.3 KB)