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

Custom attributes for element in RichTextBox

2 Answers 77 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Terje
Top achievements
Rank 1
Terje asked on 18 Apr 2013, 09:07 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Boby
Telerik team
answered on 19 Apr 2013, 07:35 AM
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.

0
Terje
Top achievements
Rank 1
answered on 19 Apr 2013, 12:34 PM
Thanks, that might do.

/terje
Tags
RichTextBox
Asked by
Terje
Top achievements
Rank 1
Answers by
Boby
Telerik team
Terje
Top achievements
Rank 1
Share this question
or