NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

AxHost.GetOleColorFromColor

Maps from an System.Drawing.Color to an OLE COLOR

[Visual Basic]
Public Shared Function GetOleColorFromColor( _
   ByVal color As Color _
) As UInt32
[C#]
public static uint GetOleColorFromColor(
   Color color
);
[C++]
public: static unsigned int GetOleColorFromColor(
   Color color
);
[JScript]
public static function GetOleColorFromColor(
   color : Color
) : UInt32;

Parameters

color
the System.Drawing.Color to convert

Return Value

the resulting OLE COLOR

See Also

AxHost Class | AxHost Members | System.WinForms Namespace