ESRI.ArcGIS.ADF.Web
ToGraphicsDataSet(DataSet,Color,Color) Method
See Also 
ESRI.ArcGIS.ADF.Web Namespace > Converter Class > ToGraphicsDataSet Method : ToGraphicsDataSet(DataSet,Color,Color) Method




ds
DataSet to convert to a graphics data set.
symbolColor
Color to use for rendering symbols in the graphics layers.
selectedSymbolColor
Color to use for rendering symbols in features that may be selected in the graphics layers.
Converts a System.Data.DataSet to an ESRI Web ADF graphics data set, using the specified symbol colors.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function ToGraphicsDataSet( _
   ByVal ds As DataSet, _
   ByVal symbolColor As Color, _
   ByVal selectedSymbolColor As Color _
) As GraphicsDataSet
Visual Basic (Usage)Copy Code
Dim ds As DataSet
Dim symbolColor As Color
Dim selectedSymbolColor As Color
Dim value As GraphicsDataSet
 
value = Converter.ToGraphicsDataSet(ds, symbolColor, selectedSymbolColor)
C# 
public static GraphicsDataSet ToGraphicsDataSet( 
   DataSet ds,
   Color symbolColor,
   Color selectedSymbolColor
)

Parameters

ds
DataSet to convert to a graphics data set.
symbolColor
Color to use for rendering symbols in the graphics layers.
selectedSymbolColor
Color to use for rendering symbols in features that may be selected in the graphics layers.

Return Value

ESRI Web ADF GraphicsDataSet.

Remarks

The data sets contain one or more tables, each of which represents a graphics layer that may be drawn on top of the map.

For a discussion of the conversion of tables in the data set, see Convert.ToGraphicsLayer(DataTable, System.Drawing.Color, System.Drawing.Color).

See Also

© 2010 All Rights Reserved.