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
'宣言
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
- 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.