Partager via


CaretPosition.Affinity Property

Definition

Gets 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.

public:
 property Microsoft::VisualStudio::Text::PositionAffinity Affinity { Microsoft::VisualStudio::Text::PositionAffinity get(); };
public:
 property Microsoft::VisualStudio::Text::PositionAffinity Affinity { Microsoft::VisualStudio::Text::PositionAffinity get(); };
public Microsoft.VisualStudio.Text.PositionAffinity Affinity { get; }
member this.Affinity : Microsoft.VisualStudio.Text.PositionAffinity
Public ReadOnly Property Affinity As PositionAffinity

Property Value

The affinity of the caret.

Remarks

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.

Applies to