ESRI.ArcGIS.ADF.Connection.Local
ToRGBColor(IServerContext,Color) Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Connection.Local Namespace > Converter Class > ToRGBColor Method : ToRGBColor(IServerContext,Color) Method




context
The Server Context to create the IRgbColor object in
Converts from System.Drawing.Color object to a ESRI.ArcGIS.Dispay.IRgbColor Used with ArcGIS Server Context

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function ToRGBColor( _
   ByVal context As ESRI.ArcGIS.Server.IServerContext, _
   ByVal color As Color _
) As ESRI.ArcGIS.Display.IRgbColor
Visual Basic (Usage)Copy Code
Dim context As ESRI.ArcGIS.Server.IServerContext
Dim color As Color
Dim value As ESRI.ArcGIS.Display.IRgbColor
 
value = Converter.ToRGBColor(context, color)
C# 
public static ESRI.ArcGIS.Display.IRgbColor ToRGBColor( 
   ESRI.ArcGIS.Server.IServerContext context,
   Color color
)

Parameters

context
The Server Context to create the IRgbColor object in
color
System.Drawing.Color

Return Value

T:ESRI.ArcGIS.Display.IRgbColor

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.