Compartilhar via


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

'Declaration
Function GetCategory ( _
    iCategory As Integer, _
    <OutAttribute> ByRef pguidCategory As Guid _
) As Integer
int GetCategory(
    int iCategory,
    out Guid pguidCategory
)
int GetCategory(
    [InAttribute] int iCategory, 
    [OutAttribute] Guid% pguidCategory
)
abstract GetCategory : 
        iCategory:int * 
        pguidCategory:Guid byref -> int
function GetCategory(
    iCategory : int, 
    pguidCategory : Guid
) : int

Parameters

  • iCategory
    Type: Int32

    [in] Integer containing the category index number.

  • pguidCategory
    Type: Guid%

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

Return Value

Type: 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
);

.NET Framework Security

See Also

Reference

IVsFontAndColorGroup Interface

Microsoft.VisualStudio.Shell.Interop Namespace