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
color
Color
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 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# 
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.