Compartir a través de


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

'Declaración
Function GetCategoryName ( _
    <OutAttribute> ByRef pbstrName As String _
) As Integer
'Uso
Dim instance As IVsFontAndColorDefaults
Dim pbstrName As String
Dim returnValue As Integer

returnValue = instance.GetCategoryName(pbstrName)
int GetCategoryName(
    out string pbstrName
)
int GetCategoryName(
    [OutAttribute] String^% pbstrName
)
abstract GetCategoryName : 
        pbstrName:string byref -> int 
function GetCategoryName(
    pbstrName : String
) : int

Parameters

  • pbstrName
    Type: System.String%
    [out] Pointer to a string containing the name of the Display Items 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 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

IVsFontAndColorDefaults Members

Microsoft.VisualStudio.Shell.Interop Namespace