Compartilhar via


CaretPosition.BufferPosition Property

Gets the position of the caret, corresponding to a gap between two characters in the ITextBuffer of the view.

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

Syntax

'Declaration
Public ReadOnly Property BufferPosition As SnapshotPoint
public SnapshotPoint BufferPosition { get; }
public:
property SnapshotPoint BufferPosition {
    SnapshotPoint get ();
}
member BufferPosition : SnapshotPoint with get
function get BufferPosition () : SnapshotPoint

Property Value

Type: Microsoft.VisualStudio.Text.SnapshotPoint
The position of the caret.

Remarks

This property gets the buffer position at the end of a line if the caret is positioned in virtual space.

.NET Framework Security

See Also

Reference

CaretPosition Structure

Microsoft.VisualStudio.Text.Editor Namespace