AxHost.GetOleColorFromColor(Color) Method

Definition

Important

This API is not CLS-compliant.

Returns an OLE color value that corresponds to the specified Color structure.

protected:
 static System::UInt32 GetOleColorFromColor(System::Drawing::Color color);
[System.CLSCompliant(false)]
protected static uint GetOleColorFromColor (System.Drawing.Color color);
static member GetOleColorFromColor : System.Drawing.Color -> uint32
Protected Shared Function GetOleColorFromColor (color As Color) As UInteger

Parameters

color
Color

The Color structure to translate.

Returns

UInt32

The OLE color value that represents the translated Color structure.

Attributes

Applies to

See also