Section pointed to by the cursor

2 posts, 0 answers
  1. Yasin
    Yasin avatar
    1 posts
    Member since:
    Oct 2016

    Posted 06 Oct Link to this post

    How can i get access to the section which is currently hovered by the cursor in a "RadRichTextBox" ?
  2. Tanya
    Tanya avatar
    405 posts

    Posted 11 Oct Link to this post

    Hi Yasin,

    You can use the methods of the DocumentPosition. Here is a sample code that shows how you can obtain the section that the caret is currently positioned on:
    Section currentSection = this.radRichTextBox.Document.CaretPosition.GetCurrentSectionBox().AssociatedSection;

    Hope this helps.

    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top