AxHost.GetOleColorFromColor Method (Color)


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

This API is not CLS-compliant.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected static uint GetOleColorFromColor(
	Color color


Type: System.Drawing.Color

The Color structure to translate.

Return Value

Type: System.UInt32

The OLE color value that represents the translated Color structure.

.NET Framework
Available since 1.1
Return to top