IVsFontAndColorUtilities.EncodeAutomaticColor Method

Returns the current value of the Visual Studio session automatic color as an RGB (COLORREF) value.

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

Syntax

‘선언
Function EncodeAutomaticColor ( _
    <OutAttribute> ByRef pcrResult As UInteger _
) As Integer
‘사용 방법
Dim instance As IVsFontAndColorUtilities
Dim pcrResult As UInteger
Dim returnValue As Integer

returnValue = instance.EncodeAutomaticColor(pcrResult)
int EncodeAutomaticColor(
    out uint pcrResult
)
int EncodeAutomaticColor(
    [OutAttribute] unsigned int% pcrResult
)
abstract EncodeAutomaticColor : 
        pcrResult:uint32 byref -> int 
function EncodeAutomaticColor(
    pcrResult : uint
) : int

Parameters

  • pcrResult
    Type: System.UInt32%
    [out] A COLORREF representation corresponding to the Visual Studio automatic color.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Managed code can obtain functionality equivalent to GetSysColor with SystemColors and convert between COLORREF and the System.Drawing.Color structure using M:System.Drawing.ColorTranslator.FromWin32 and M:System.Drawing.ColorTranslator.ToWin32.

.NET Framework Security

See Also

Reference

IVsFontAndColorUtilities Interface

IVsFontAndColorUtilities Members

Microsoft.VisualStudio.Shell.Interop Namespace

Other Resources

Fonts