IVsFontAndColorGroup.GetGroupName Method

Returns a category group's localized name.

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

Syntax

'宣言
Function GetGroupName ( _
    <OutAttribute> ByRef pbstrName As String _
) As Integer
'使用
Dim instance As IVsFontAndColorGroup
Dim pbstrName As String
Dim returnValue As Integer

returnValue = instance.GetGroupName(pbstrName)
int GetGroupName(
    out string pbstrName
)
int GetGroupName(
    [OutAttribute] String^% pbstrName
)
function GetGroupName(
    pbstrName : String
) : int

Parameters

  • pbstrName
    Type: System.String%

    [out] Pointer to a string containing the name..

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::GetGroupName(
   [out] BSTR *pbstrName
);

The name returned in pbstrName will be displayed on the Fonts and Colors page enclosed in brackets to indicate that it is a super-category. Since the name is displayed to the user, it must be localized.

Permissions

See Also

Reference

IVsFontAndColorGroup Interface

IVsFontAndColorGroup Members

Microsoft.VisualStudio.Shell.Interop Namespace