private bool TextSelectedChecked()
{
IHTMLDocument2 htmlDocument = Document.DomDocument as IHTMLDocument2;
IHTMLSelectionObject currentSelection = htmlDocument.selection;
if (currentSelection != null)
{
IHTMLTxtRange range = currentSelection.createRange() as IHTMLTxtRange;
if (range != null && !string.IsNullOrEmpty(range.text))
return true;
}
return false;
}