共用方式為


ITextViewLine.GetAdornmentTags 方法

取得位於行上的裝飾。

命名空間:  Microsoft.VisualStudio.Text.Formatting
組件:  Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)

語法

'宣告
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>

參數

  • providerTag
    類型:Object

    提供者的識別標籤。

    這個標籤應符合 SpaceNegotiatingAdornmentTag.ProviderTag。

傳回值

類型:ReadOnlyCollection<Object>
裝飾識別標籤的序列 (依其出現在行上的順序)。該集合永遠是非-nullnull 參考 (即 Visual Basic 中的 Nothing) ,但可能是空的。

例外狀況

例外狀況 條件
ArgumentNullException

providerTag 為 nullnull 參考 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

ITextViewLine 介面

Microsoft.VisualStudio.Text.Formatting 命名空間