Share via


IAdornmentElement.Affinity Property

Gets the PositionAffinity of the adornment.

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

Syntax

'Declaration
ReadOnly Property Affinity As PositionAffinity
PositionAffinity Affinity { get; }
property PositionAffinity Affinity {
    PositionAffinity get ();
}
abstract Affinity : PositionAffinity
function get Affinity () : PositionAffinity

Property Value

Type: Microsoft.VisualStudio.Text.PositionAffinity
The PositionAffinity of the adornment.

Remarks

This is used only when the length of the adornment element span in the source buffer is zero.

.NET Framework Security

See Also

Reference

IAdornmentElement Interface

Microsoft.VisualStudio.Text.Formatting Namespace