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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。