Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TextSelection.IsActiveEndGreater Property

Gets whether the active point is equal to the bottom point.

Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)

bool IsActiveEndGreater { get; }
/** @property */
boolean get_IsActiveEndGreater ()

function get IsActiveEndGreater () : boolean

Property Value

A Boolean value indicating True if the selected text's active end is at a greater absolute character offset than the anchor in the text document, False if not.
Sub IsActiveEndGreaterExample()
   ' Before running this example, open a text document.
   Dim objSel As TextSelection = DTE.ActiveDocument.Selection
   ' Go to first line in document.
   objSel.GotoLine(1, False)
   MsgBox("Is the active point at the bottom of the document? " & objSel.IsActiveEndGreater)
   objSel.EndOfDocument(True)
   MsgBox("Is the active point at the bottom of the document? " & objSel.IsActiveEndGreater)
End Sub
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.