I'm trying to create a simple two item list, with bullets using the RadFlowDocument and RadFlowDocumentEditor.
Like this:-
- Item One
- Item Two
I have to admit it's hard going, as the documentation leaves a lot to be desired (why do none of the examples actually end up creating anything in a document?).
I currently have:-
List list =
new
List();
newDoc.Lists.Add(list);
list.Levels[0].StartIndex = 1;
list.Levels[0].NumberingStyle = NumberingStyle.Bullet;
list.Levels[0].ParagraphProperties.LeftIndent.LocalValue = 24;
var line1= editor.InsertLine(
"Line One"
);
line1.Paragraph.ListId = list.Id;
var line2=editor.InsertLine(
"Line Two"
);
line2.Paragraph.ListId = list.Id;
This sort of works, with the two lines being indented, but no bullet character is shown.
This thing should be simple, but isn't.