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 命名空间