IVsFontAndColorUtilities.EncodeAutomaticColor(UInt32) Method

Definition

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

public:
 int EncodeAutomaticColor([Runtime::InteropServices::Out] System::UInt32 % pcrResult);
int EncodeAutomaticColor([Runtime::InteropServices::Out] unsigned int & pcrResult);
public int EncodeAutomaticColor (out uint pcrResult);
abstract member EncodeAutomaticColor : uint32 -> int
Public Function EncodeAutomaticColor (ByRef pcrResult As UInteger) As Integer

Parameters

pcrResult
UInt32

[out] A COLORREF representation corresponding to the Visual Studio automatic color.

Returns

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.

Applies to