C2016-044: Find RO values from selected Word section text

This commit is contained in:
2017-01-26 12:29:06 +00:00
parent e6c65b5139
commit 90834bf875
4 changed files with 92 additions and 31 deletions

View File

@@ -319,6 +319,16 @@ namespace Volian.Controls.Library
sel.Text = txt;
}
public string GetSelectedString()
{
LBDocumentClass wordDoc = new LBDocumentClass(_MyDSOFramer.ActiveDocument);
//This will get the selected range or just the current cursor position
LBSelection sel = wordDoc.Application.Selection;
// if the start & end are the same, nothing is selected:
if (sel.Start == sel.End) return null;
return sel.Text;
}
private string ShowException(Exception ex)
{
string sep = "\r\n ";