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

Possible to create a Custom Annotation that inherits from PermissionRangeStart\End?

1 Answer 30 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 01 Aug 2013, 01:24 AM
I have a very basic Custom Annotation working as specified here:

http://www.telerik.com/help/silverlight/radrichtextbox-features-document-elements-custom-annotations.html

All I really need is the ability to attach a couple of custom properties to this annotation. 

Would it be possible to inherit from the PermissionRangeStart\End classes to retain all their behaviour while allowing some custom properties to be attached to these annotations? If so how could I call InsertPermissionRange (or create an equivalent) such that it inserts my Custom Annotation?

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 02 Aug 2013, 05:06 PM
Hello Simon,

It is possible to inherit from the PermissionRangeStart and End ranges, but if the functionality you are developing through them will not be related to document protection, it would be better to inherit from AnnotationRangeStar/End or FieldRangeStart/End.

In any case, regardless of the way you implement the annotation ranges, it would not be possible to insert them using the InsertPermissionRange method, as it only accepts a PermissionRangeInfo and creates the range markers internally. Instead, you could use the InsertAnnotationRange(AnnotationRangeStart rangeStart, AnnotationRangeEnd rangeEnd) method and pass the range start and end instances, to which you have set the required properties.

Regards,
Iva Toteva
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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
Simon
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or