共用方式為


IVsFontsAndColorsInformation.GetClassificationType 方法

取得由語言服務的類別器,可設定色彩的項目中指定索引處型別。

命名空間:  Microsoft.VisualStudio.Editor
組件:  Microsoft.VisualStudio.Editor (在 Microsoft.VisualStudio.Editor.dll 中)

語法

'宣告
Function GetClassificationType ( _
    colorableItemIndex As Integer _
) As IClassificationType
IClassificationType GetClassificationType(
    int colorableItemIndex
)
IClassificationType^ GetClassificationType(
    int colorableItemIndex
)
abstract GetClassificationType : 
        colorableItemIndex:int -> IClassificationType
function GetClassificationType(
    colorableItemIndex : int
) : IClassificationType

參數

  • colorableItemIndex
    類型:Int32

    可設定色彩項目的索引。

傳回值

類型:Microsoft.VisualStudio.Text.Classification.IClassificationType
傳回 IClassificationType

.NET Framework 安全性

請參閱

參考

IVsFontsAndColorsInformation 介面

Microsoft.VisualStudio.Editor 命名空間