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
'Declaración
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
- 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.