Condividi tramite


SpaceNegotiatingAdornmentTag.Affinity Property

Gets the PositionAffinity of the space-negotiating adornment.

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

Syntax

'Dichiarazione
Public Property Affinity As PositionAffinity
    Get
    Private Set
public PositionAffinity Affinity { get; private set; }
public:
property PositionAffinity Affinity {
    PositionAffinity get ();
    private: void set (PositionAffinity value);
}
member Affinity : PositionAffinity with get, private set
function get Affinity () : PositionAffinity
private function set Affinity (value : PositionAffinity)

Property Value

Type: Microsoft.VisualStudio.Text.PositionAffinity
The PositionAffinity of the space-negotiating adornment.

Remarks

This property is not used for adornments that replace text. An adornment does not replace text if its tag has a zero-length span on the view's text buffer.

.NET Framework Security

See Also

Reference

SpaceNegotiatingAdornmentTag Class

Microsoft.VisualStudio.Text.Tagging Namespace