RadDocumentExtensions code sample

4 posts, 1 answers
  1. Robert
    Robert avatar
    271 posts
    Member since:
    Mar 2011

    Posted 11 Jun 2012 Link to this post


    I've been working hard, with the help of telerik support, trying to extend the features of RadDocument. Please find my latest code sample download link here.

    It took me quite some time to learn and make these features so this should help speed things up for you.

    I have mainly be building up a library of custom annotation features, but there are also other additions.

    Here are my methods:
    • GetSelectedAnnotationsRangeStarts()
    • GetPreviousAnnotationRangeStart()
    • GetNextAnnotationRangeStart()
    • GetNextAnnotationRangeStartAtPosition()
    • GetSameLineNextAnnotationRangeStart()
    • GetPreviousSameLineAnnotationRangeStart()
    • IsCaretAtLineEnd()
    • IsCaretAtLineStart()
    • DeletedNonSelectedSpanTextAtCaret()
    • DeleteOnlySelectedAnnotations()
    • GetNextAnnotationMarker()
    • GetPreviousAnnotationMarker()
    • GetLastSelectedAnnotationMarker()
    • GetPreviousAnnotationMarkerEndAndStartRanges()
    • DeleteReadOnlyRanges()
    • ToggleHighlightReadOnlyRangesOn()
    • ToggleHighlightReadOnlyRangesOff()
    • MakeReadOnlyRangesEditable()
    • DeleteCurrentParagraph()
    • IsCaretOnFirstLineInParagraph()
    • IsPositionOnFirstLineInParagraph()


    Feel free to let me know if you find any errors or more efficient ways to achieve the above.
    Please upload your code if you extend the features of this code sample. Every little helps.


  2. Robert
    Robert avatar
    271 posts
    Member since:
    Mar 2011

    Posted 15 Aug 2012 Link to this post

    Am I right in thinking that some of these extensions are now part of the latest API?
  3. Answer
    Boby avatar
    639 posts

    Posted 21 Aug 2012 Link to this post

    Hello Robert,
    Some methods with similar functionality was added in the previous versions, and some may be added in future releases. Could you clarify what is the problem you are experiencing?

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  4. Robert
    Robert avatar
    271 posts
    Member since:
    Mar 2011

    Posted 21 Aug 2012 Link to this post

    Thanks for getting back to me Boby.

    I have no problems to speak of. I was just making a general enquiry.
Back to Top