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




A Renderer object used for displaying features with one symbol.

Object Model


Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class SimpleRenderer 
   Inherits Renderer
Visual Basic (Usage)Copy Code
Dim instance As SimpleRenderer
C# 
[SerializableAttribute()]
public class SimpleRenderer : Renderer 

Example

The following example retrieves an existing map layer, creates a new symbol and SimpleRenderer, and assigns the new SimpleRenderer to the layer.
Visual BasicCopy 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 

    

Remarks

Use this renderer to symbolize all features of a feature layer with the same symbol.

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.ADF.IMS.Display.Renderer.Renderer
      ESRI.ArcGIS.ADF.IMS.Display.Renderer.SimpleRenderer

See Also

© 2010 All Rights Reserved.