ESRI.ArcGIS.ADF
ToRGBColor(IServerContext,Color) Method
See Also  Send comments on this topic.
ESRI.ArcGIS.ADF Namespace > Converter Class > ToRGBColor Method : ToRGBColor(IServerContext,Color) Method




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

Syntax

Visual Basic (Declaration) 
<ObsoleteAttribute("This method is obsolete.  Use the ESRI.ArcGIS.ADF.Connection.Local.Converter.ToRGBColor method from the ESRI.ArcGIS.ADF.Connection.Local assembly instead.")>
Public Overloads Shared Function ToRGBColor( _
   ByVal context As IServerContext, _
   ByVal color As Color _
) As IRgbColor
Visual Basic (Usage)Copy Code
Dim context As IServerContext
Dim color As Color
Dim value As IRgbColor
 
value = Converter.ToRGBColor(context, color)
C# 
[ObsoleteAttribute("This method is obsolete.  Use the ESRI.ArcGIS.ADF.Connection.Local.Converter.ToRGBColor method from the ESRI.ArcGIS.ADF.Connection.Local assembly instead.")]
public static IRgbColor ToRGBColor( 
   IServerContext context,
   Color color
)

Parameters

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

Return Value

IRgbColor

See Also

© 2010 All Rights Reserved.