Compartir a través de


IVsFontAndColorEvents.OnResetToBaseCategory Method

Called by the environment whenever all of a category's attributes are reset to its alternate set of default values, as specified by its base category.

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

Syntax

'Declaration
Function OnResetToBaseCategory ( _
    ByRef rguidCategory As Guid _
) As Integer
int OnResetToBaseCategory(
    ref Guid rguidCategory
)
int OnResetToBaseCategory(
    [InAttribute] Guid% rguidCategory
)
abstract OnResetToBaseCategory : 
        rguidCategory:Guid byref -> int
function OnResetToBaseCategory(
    rguidCategory : Guid
) : int

Parameters

  • rguidCategory
    Type: Guid%

    [in] Specifies the GUID of the base 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 IVsFontAndColorEvents::OnResetToBaseCategory(
   [in] REFGUID rguidCategory
);

An item listed in the Display Items list can have an alternate set of default values based on a base category set with GetBaseCategory. For example, by default the Display Items list in the Printer category have the Text Editor category as an alternate base category.

.NET Framework Security

See Also

Reference

IVsFontAndColorEvents Interface

Microsoft.VisualStudio.Shell.Interop Namespace