IVsFontAndColorGroup.GetCategory Method

Returns the GUID of the one of the categories within a group as identified by a group index.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣言
Function GetCategory ( _
    iCategory As Integer, _
    <OutAttribute> ByRef pguidCategory As Guid _
) As Integer
'使用
Dim instance As IVsFontAndColorGroup
Dim iCategory As Integer
Dim pguidCategory As Guid
Dim returnValue As Integer

returnValue = instance.GetCategory(iCategory, _
    pguidCategory)
int GetCategory(
    int iCategory,
    out Guid pguidCategory
)
int GetCategory(
    [InAttribute] int iCategory, 
    [OutAttribute] Guid% pguidCategory
)
function GetCategory(
    iCategory : int, 
    pguidCategory : Guid
) : int

Parameters

  • iCategory
    Type: System.Int32

    [in] Integer containing the category index number.

  • pguidCategory
    Type: System.Guid%

    [out] Pointer to a GUID specifying the indexed category.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsFontAndColorGroup::GetCategory(
   [in] int iCategory,
   [out] GUID *pguidCategory
);

Permissions

See Also

Reference

IVsFontAndColorGroup Interface

IVsFontAndColorGroup Members

Microsoft.VisualStudio.Shell.Interop Namespace