다음을 통해 공유


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)

Syntax

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

Property Value

Type: Microsoft.VisualStudio.Text.PositionAffinity
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.

.NET Framework Security

See Also

Reference

CaretPosition Structure

Microsoft.VisualStudio.Text.Editor Namespace