I need to get/set text information (text, position of cursor, rectangle of cursor position, selection) from TX Text Control 23.0 for WPF.
I tried to get text information by Text Service Framework but ITfDocumentMgr have only one context (ITfContext) which have no any useful info about TX Text Control and I can't get text information.
How do you think, how we can get text information from WPF TX Text Control?
Thanks, for any ideas.
Link on WPF Tx Text: http://www.textcontrol.com/en_US/downloads/trials/index/default/dotnetwpf/
You can get the text using the .text property
var intText;
intText = textControl1.Text
If you want to get the selected text from the text control then you can use the below code.
TXTextControl.Selection mySel = new TXTextControl.Selection(3, 4);
textControl1.Selection = mySel;