|
| ESRI.ArcGIS.ADF.IMS | |
| SimpleRenderer Class | |
| Members Example See Also Send Feedback | |
| ESRI.ArcGIS.ADF.IMS.Display.Renderer Namespace : SimpleRenderer Class |

| Visual Basic (Declaration) | |
|---|---|
<SerializableAttribute()> Public Class SimpleRenderer Inherits Renderer | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As SimpleRenderer | |
| C# | |
|---|---|
[SerializableAttribute()] public class SimpleRenderer : Renderer | |
The following example retrieves an existing map layer, creates a new symbol and SimpleRenderer, and assigns the new SimpleRenderer to the layer.
| Visual Basic | Copy Code |
|---|---|
' Get layer for changing renderer Dim layer As FeatureLayer = mapView.Layers.FindByName("Countries") ' Create symbol to use with renderer Dim simpleFillSymb As New SimpleFillSymbol(Drawing.Color.Wheat, Drawing.Color.DarkGray, PolygonFillType.Solid) ' Assign a new renderer to the layer Dim simpleRend As New SimpleRenderer(simpleFillSymb) layer.Renderer = simpleRend | |
| C# | Copy Code |
|---|---|
// Get layer for changing renderer FeatureLayer layer = mapView.Layers.FindByName("Countries"); // Create symbol to use with renderer SimpleFillSymbol simpleFillSymb = new SimpleFillSymbol(Drawing.Color.Wheat, Drawing.Color.DarkGray, PolygonFillType.Solid); // Assign a new renderer to the layer SimpleRenderer simpleRend = new SimpleRenderer(simpleFillSymb); layer.Renderer = simpleRend | |
Use this renderer to symbolize all features of a feature layer with the same symbol.
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