ITextViewLine.GetAdornmentTags Method
Gets the adornments positioned on the line.
Namespace: Microsoft.VisualStudio.Text.Formatting
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Déclaration
Function GetAdornmentTags ( _
providerTag As Object _
) As ReadOnlyCollection(Of Object)
ReadOnlyCollection<Object> GetAdornmentTags(
Object providerTag
)
ReadOnlyCollection<Object^>^ GetAdornmentTags(
Object^ providerTag
)
abstract GetAdornmentTags :
providerTag:Object -> ReadOnlyCollection<Object>
function GetAdornmentTags(
providerTag : Object
) : ReadOnlyCollection<Object>
Parameters
- providerTag
Type: System.Object
The identity tag of the provider.
This tag should match SpaceNegotiatingAdornmentTag.ProviderTag.
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<Object>
A sequence of adornment identity tags in order of their appearance on the line. The collection is always non-nulla null reference (Nothing in Visual Basic) but may be empty.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | providerTag is nulla null reference (Nothing in Visual Basic). |
.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.