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)

public:
property SnapshotPoint BufferPosition {
	SnapshotPoint get();
}

Property Value

Type: Microsoft.VisualStudio.Text::SnapshotPoint

The position of the caret.

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

Return to top
Show: