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

Find if caret in document or in header/footer

1 Answer 61 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
Shahed
Top achievements
Rank 1
Shahed asked on 12 Nov 2015, 03:20 PM

Hi,

I am using RadDocument. When user double clicks on the header section, the caret goes to header section. Is there anyway for me to find out if my caret is in header/footer section or in the document body section?

 

Kind Regards,

 Shahed

 

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 17 Nov 2015, 08:29 AM
Hi ,

In order to obtain where the editor position is, you could subscribe to the RadRichTextBox's ActiveDocumentEditorChanged event. Later, in the event handler you could check what is the DocumentEditorType from the ActiveDocumentEditorChangedEventArgs event arguments. 

I hope this helps.
If you have further questions, please get back to us again.

Regards,
Todor
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
WordsProcessing
Asked by
Shahed
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or