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

2 posts, 0 answers
  1. Simon
    Simon avatar
    4 posts
    Member since:
    Oct 2011

    Posted 31 Jul 2013 Link to this post

    I have a very basic Custom Annotation working as specified here:


    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?

  2. Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 02 Aug 2013 Link to this post

    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.

    Iva Toteva
    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 >>
Back to Top