This is a migrated thread and some comments may be shown as answers.

Modify Default RadDocument ListStyle programmatically

1 Answer 125 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 23 Aug 2013, 07:28 PM
In the RadRichTextBoxRibbonUI there is a collection of lists defined by default in the following drop-down button:



I would like to modify the properties (e.g. the hanging indent) of these default lists.  How would I modify these default lists programmatically?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 28 Aug 2013, 03:48 PM
Hello Tony,

Thank you for contacting us about this issue!

For creating custom list styles or modifying a default one you will need to use the ListStyle class and its Levels property, which gives you access to a collection of ListLevelStyle instances. Through this ListLevelStyle instances you have access to the properties (such as Indent, HangingIndent, FontFamily, ...)  for each level in the ListStyle. I suggest you refer to this article for more information on list styles.

You can obtain one of the default list styles in order to modify it as follows:

ListStyle style = Telerik.Windows.Documents.Lists.DefaultListStyles.Bulleted;

I hope this helps! I you have any other questions or concerns please do not hesitate to contact us again!

Regards,
Deyan
the Telerik team
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
RichTextBox
Asked by
Tony
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or