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

声明
ReadOnly Property IsEmpty As Boolean
    Get
bool IsEmpty { get; }
property bool IsEmpty {
    bool get ();
}
abstract IsEmpty : bool
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