ITextSelection::IsEmpty Property

 

Determines whether the selection is zero length.

Namespace:   Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

property bool IsEmpty {
	bool get();
}

Property Value

Type: System::Boolean

true if the selection is zero length, otherwise false.

The selection is empty if the active and anchor points are the same point.

Return to top
Show: