I develop text editor for the Windows store application (WinRT) based on RichEditBox control. RichEditBox use ITextParagraphFormat for paragraph operation and ListAlignment, ListLevelIndex and other properties for bulleted and numbered lists. I not found any samples to insert bulleted or numbered lists to RichEditBox. How I can to add lists to RichEditBox using ITextParagraphFormat?
相关问题
- how to split a list into a given number of sub-lis
- Inheritance impossible in Windows Runtime Componen
- C#: How do i get 2 lists into one 2-tuple list in
- how to get running process information in java?
- F#: Storing and mapping a list of functions
You need to set the ITextParagraphFormat.ListType property for the ITextParagraphFormat. For bullet, set the ListType property to
MarkerType.Bullet
, for number, set the ListType toMarkerType.Arabic
. More types please reference the MarkerType enumeration to choose other list types you want.Here is a sample about adding the bullet and number to the selected paragraph list in the RichEditBox you can test.
XAML Code
Code behind