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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.