IVsFontAndColorStorage2.RevertItemToDefault Method

Revert the indicated registry font or color entry to its default value.

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

Syntax

'宣言
Function RevertItemToDefault ( _
    szName As String _
) As Integer
'使用
Dim instance As IVsFontAndColorStorage2
Dim szName As String
Dim returnValue As Integer

returnValue = instance.RevertItemToDefault(szName)
int RevertItemToDefault(
    string szName
)
int RevertItemToDefault(
    [InAttribute] String^ szName
)
function RevertItemToDefault(
    szName : String
) : int

Parameters

  • szName
    Type: System.String

    [in] Null-terminated string containing the non-localized name of the font or color registry entry.

Return Value

Type: System.Int32

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

Remarks

Reverts the indicated font or color registry entry to its default value.

Permissions

See Also

Reference

IVsFontAndColorStorage2 Interface

IVsFontAndColorStorage2 Members

Microsoft.VisualStudio.Shell.Interop Namespace

IVsFontAndColorStorage