I'm trying to draw a colour filled circular shape on my document to act as a coloured bullet point.
My issue is that the AppendShape method does not appear to either have the exact shape I'm looking for or if use something like ShapeType.Pie (which sounded like the shape that would most likely give me what I need) nothing renders on the page.
Other shape types like arrow, rectangle etc do appear when I use them but there are a few that don't seem to do anything.
Can you advise as to why this might be happening? Here is my code snippet:
- Code: Select all
var paragraph = docSection.AddParagraph();
var shape = paragraph.AppendShape(50f, 50f, ShapeType.Pie);
shape.StrokeColor = Color.Red;
shape.FillColor = Color.Red;
Alternatively, if I am going about this the wrong way can you suggest an easier or better way to achieve a way to create styled bullet points with size/colour etc.
Thank you,
Zac