SpanBoxPositionHandler is used with document positions, which are mainly used to navigate through the document like when you use the arrows on the keyboard or change the caret position. You can read more about document positions here, but I don't see in what way they would be helpful in your case.
As it comes to the DocumentElementCollection and DocumentStructureCollection, they implement the logic that would allow adding document elements (such as Paragraphs and Spans) to the Children's property (Blocks or Inlines) of the document element that can contain them. You can get a picture of RadDocuments's structure in our online help.
If I understand your scenario right, you know where you wish each list item to appear and what number it should be assigned. In that case you can insert it like this:
Paragraph BuildActivity(RPActivitiesItem activity,
indentStep = 28;
Span spanTitle =
Span spanContent =
Paragraph paragraphContent =
paragraphContent.LeftIndent = level * indentStep;
And then add these paragraphs to the document like this:
sender, RoutedEventArgs e)
RadDocument document =
Section section =
itemsCount = 5;
i = 0; i < itemsCount; i++)
RPActivitiesItem item =
"Publication title "
Paragraph paragraph = BuildActivity(item, i);
.editor.Document = document;
Let us know how we can help you further.
All the best,
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>