ESRI.ArcGIS.ADF.Web
getRenderer Method
See Also 
ESRI.ArcGIS.ADF.Web Namespace > Converter Class : getRenderer Method




featureType
Feature type (point, line or polygon) for which to create a renderer.
symbolColor
Color to use for the symbol.
Creates a new simple renderer for the input feature type.

Syntax

Visual Basic (Declaration) 
Public Shared Function getRenderer( _
   ByVal featureType As FeatureType, _
   ByVal symbolColor As Color _
) As IRenderer
Visual Basic (Usage)Copy Code
Dim featureType As FeatureType
Dim symbolColor As Color
Dim value As IRenderer
 
value = Converter.getRenderer(featureType, symbolColor)
C# 
public static IRenderer getRenderer( 
   FeatureType featureType,
   Color symbolColor
)

Parameters

featureType
Feature type (point, line or polygon) for which to create a renderer.
symbolColor
Color to use for the symbol.

Return Value

Renderer for the feature type.

Remarks

This method creates a new renderer appropriate for the specified FeatureType (Point, Line or Polygon). The renderer is a SimpleRenderer with a symbol for the input feature type:

  • For point type: SimpleMarkerSymbol with a push-pin character (ESRI Crime Analysis 0x0065 hex / 101 decimal), fill color using the symbolColor parameter.
  • For line type: SimpleLineSymbol, line color using the symbolColor parameter.
  • For polygon type: SimpleFillSymbol, fill color using the symbolColor parameter, with a 50 percent transparency.

See Also

© 2010 All Rights Reserved.