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

RadDocumentExtensions code sample

3 Answers 73 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 11 Jun 2012, 09:12 PM
Hi,

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.

Rob

3 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 15 Aug 2012, 06:22 PM
Am I right in thinking that some of these extensions are now part of the latest API?
0
Accepted
Boby
Telerik team
answered on 21 Aug 2012, 10:37 AM
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,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Robert
Top achievements
Rank 1
answered on 21 Aug 2012, 06:17 PM
Thanks for getting back to me Boby.

I have no problems to speak of. I was just making a general enquiry.
Tags
RichTextBox
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Boby
Telerik team
Share this question
or