Modify Default RadDocument ListStyle programmatically

2 posts, 1 answers
  1. Tony
    Tony avatar
    4 posts
    Member since:
    Mar 2013

    Posted 23 Aug 2013 Link to this post

    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.
  2. Answer
    Deyan
    Admin
    Deyan avatar
    135 posts

    Posted 28 Aug 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top