CaretPosition::Affinity Property

 

Gets the affinity of the caret.

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

public:
property PositionAffinity Affinity {
	PositionAffinity get();
}

Property Value

Type: Microsoft.VisualStudio.Text::PositionAffinity

The affinity of the caret.

Predecessor indicates that the caret is bound to the preceding edge of the gap. Successor indicates that the caret is bound to the following edge of the gap.

Return to top
Show: