Share via


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)

Syntax

'Declaration
ReadOnly Property IsEmpty As Boolean
bool IsEmpty { get; }
property bool IsEmpty {
    bool get ();
}
abstract IsEmpty : bool with get
function get IsEmpty () : boolean

Property Value

Type: System.Boolean
true if the selection is zero length, otherwise false.

Remarks

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

.NET Framework Security

See Also

Reference

ITextSelection Interface

Microsoft.VisualStudio.Text.Editor Namespace