Share via


ITextCaret.InVirtualSpace Property

Determines whether the caret lies in virtual space. A virtual space is one that is after the physical end of a line.

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

Syntax

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

Property Value

Type: System.Boolean
true if the caret is in virtual space, otherwise false.

Remarks

This is distinct from the UseVirtualSpaceId, since virtual space can be enabled even if the caret does not lie in virtual space.

.NET Framework Security

See Also

Reference

ITextCaret Interface

Microsoft.VisualStudio.Text.Editor Namespace