Share via


IVsFontAndColorStorage.RemoveCategory(Guid) Method

Definition

Deletes saved data for a Category from the registry.

public:
 int RemoveCategory(Guid % rguidCategory);
public int RemoveCategory (ref Guid rguidCategory);
abstract member RemoveCategory : Guid -> int
Public Function RemoveCategory (ByRef rguidCategory As Guid) As Integer

Parameters

rguidCategory
Guid

[in] The GUID of the Category.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsFontAndColorStorage::RemoveCategory(  
   [in] REFGUID rguidCategory  
);  

This method provides an easy way to revert the settings of a Category to their default values.

If a Category is open, IVsFontAndColorStorage.RemoveCategory will attempt to close the Category before returning it to its original state.

Applies to