Share via


IVsFontAndColorDefaults.GetCategoryName Method

Returns the display name of a Display Items category.

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

Syntax

'Declaration
Function GetCategoryName ( _
    <OutAttribute> ByRef pbstrName As String _
) As Integer
int GetCategoryName(
    out string pbstrName
)
int GetCategoryName(
    [OutAttribute] String^% pbstrName
)
abstract GetCategoryName : 
        pbstrName:string byref -> int
function GetCategoryName(
    pbstrName : String
) : int

Parameters

  • pbstrName
    Type: String%

    [out] Pointer to a string containing the name of the Display Items 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 IVsFontAndColorDefaults::GetCategoryName(
   [out] BSTR *pbstrName
);

The name supplied in pbstrName is displayed on the Fonts and Colors page. Because this name is displayed to the user, it must be localized.

.NET Framework Security

See Also

Reference

IVsFontAndColorDefaults Interface

Microsoft.VisualStudio.Shell.Interop Namespace