C2016-044: Find RO values from selected Word section text
This commit is contained in:
@@ -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 ";
|
||||
|
Reference in New Issue
Block a user