Custom attributes for element in RichTextBox

3 posts, 1 answers
  1. Terje
    Terje avatar
    6 posts
    Member since:
    Jun 2009

    Posted 18 Apr 2013 Link to this post

    Hi

    Are there support for custom attributes on individual elements in the RichTextBox, or some possibility to extend the RTB to support it?
    What i would like to achieve is to programmatically add, say an ID (or other forms of metadata), to individual elements on the canvas such as an image, a table, footnote and so on, and then be able to track/read the attributes at a later point via exported xaml from the XamlFormatProvider.

    Hope this makes sense.

    Best regards,
    Terje
  2. Answer
    Boby
    Admin
    Boby avatar
    595 posts

    Posted 19 Apr 2013 Link to this post

    Hello Terje,
    You can use DocumentElement.Tag property, which is of type string and is designed for such purposes.

    All the best,
    Boby
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Terje
    Terje avatar
    6 posts
    Member since:
    Jun 2009

    Posted 19 Apr 2013 Link to this post

    Thanks, that might do.

    /terje
Back to Top