![]() ![]() |
ESRI.ArcGIS.ADF.IMS | |
Create(FeatureType,Color) Method | |
See Also Example Send Feedback |
ESRI.ArcGIS.ADF.IMS.Display.Renderer Namespace > SimpleRenderer Class > Create Method : Create(FeatureType,Color) Method |
- type
- color
Visual Basic (Declaration) | |
---|---|
Public Overloads Shared Function Create( _ ByVal type As FeatureType, _ ByVal color As Color _ ) As SimpleRenderer |
Visual Basic (Usage) | ![]() |
---|---|
Dim type As FeatureType Dim color As Color Dim value As SimpleRenderer value = SimpleRenderer.Create(type, color) |
C# | |
---|---|
public static SimpleRenderer Create( FeatureType type, Color color ) |
Parameters
- type
- color
Return Value
New SimpleRenderer object. The following example retrieves an existing map layer and replaces its renderer using the Create method.
Visual Basic | ![]() |
---|---|
Dim layer As FeatureLayer = mapView.Layers.FindByName("Countries") layer.Renderer = SimpleRenderer.Create(FeatureType.Polygon, Drawing.Color.Wheat) |
C# | ![]() |
---|---|
FeatureLayer layer = mapView.Layers.FindByName("Countries");
layer.Renderer = SimpleRenderer.Create(FeatureType.Polygon, Drawing.Color.Wheat); |
The SimpleRenderer Create methods are convenience methods for quickly creating a renderer along with a simple symbol for the renderer. Depending on the type of layer, the symbol created is a SimpleMarkerSymbol (for point layers), SimpleLineSymbol (for line layers), or SimpleFillSymbol (for polygon layers).
To create a renderer that uses other symbol types, create the symbol separately, then assign it to a renderer created with one of the SimpleRenderer constructors.
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