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
'宣言
Public ReadOnly Property Affinity As PositionAffinity
Get
public PositionAffinity Affinity { get; }
public:
property PositionAffinity Affinity {
PositionAffinity get ();
}
member Affinity : PositionAffinity
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.