IVsTextEditorPropertyCategoryContainer.GetPropertyCategory 方法

返回指定的属性类别。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Function GetPropertyCategory ( _
    ByRef rguidCategory As Guid, _
    <OutAttribute> ByRef ppProp As IVsTextEditorPropertyContainer _
) As Integer
int GetPropertyCategory(
    ref Guid rguidCategory,
    out IVsTextEditorPropertyContainer ppProp
)
int GetPropertyCategory(
    [InAttribute] Guid% rguidCategory, 
    [OutAttribute] IVsTextEditorPropertyContainer^% ppProp
)
abstract GetPropertyCategory : 
        rguidCategory:Guid byref * 
        ppProp:IVsTextEditorPropertyContainer byref -> int
function GetPropertyCategory(
    rguidCategory : Guid, 
    ppProp : IVsTextEditorPropertyContainer
) : int

参数

  • rguidCategory
    类型:Guid%

    [in] 为属性指定 GUID 类别。 核心文本编辑器的预定义类别是 GUID_EditPropCategory_View_MasterSettings 和 GUID_EditPropCategory_TextMgr_Global,对于 textmgr.idl 定义。 其他对象可以定义不同的类别,根据要求。

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

HRESULT IVsTextEditorPropertyCategoryContainer::GetPropertyCategory(
   [in] REFGUID rguidCategory, 
   [out] IVsTextEditorPropertyContainer **ppProp
);

.NET Framework 安全性

请参阅

参考

IVsTextEditorPropertyCategoryContainer 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间