ESRI.ArcGIS.ADF.Web
ElementGraphicsLayer Class
Members  See Also 
ESRI.ArcGIS.ADF.Web.Display.Graphics Namespace : ElementGraphicsLayer Class




An ElementGraphicsLayer is a table of GraphicElement objects with associated attributes.

Object Model


Syntax

Visual Basic (Declaration) 
<DesignerCategoryAttribute("code")>
<SerializableAttribute()>
Public Class ElementGraphicsLayer 
   Inherits GraphicsLayer
Visual Basic (Usage)Copy Code
Dim instance As ElementGraphicsLayer
C# 
[DesignerCategoryAttribute("code")]
[SerializableAttribute()]
public class ElementGraphicsLayer : GraphicsLayer 

Remarks

An ElementGraphicsLayer is appropriate if you want to create a graphics layer with a collection of features (GraphicElement not necessarily of the same FeatureType. Each element (or feature, or row) has its own renderer and symbol. For example, if you created a custom tool that allowed users to sketch ad-hoc graphics on the map, where the graphics could be points, lines or polygons, then an ElementGraphicsLayer may be the appropriate place to store these graphics. The other type of graphics layer, FeatureGraphicsLayer, is conceptually similar to a map layer in a map service, where all features in the layer are of the same FeatureType (Point, Line or Polygon). Since all features have the same geometry type, a single Renderer can be used to symbolize the features.

For a discussion of using graphics layers in the ESRI Web ADF, see the topic Working with Graphics in the Developer Help (also available online at the ArcGIS Resource Center).

Inheritance Hierarchy

System.Object
   System.ComponentModel.MarshalByValueComponent
      System.Data.DataTable
         ESRI.ArcGIS.ADF.Web.Display.Graphics.GraphicsLayer
            ESRI.ArcGIS.ADF.Web.Display.Graphics.ElementGraphicsLayer

See Also

© 2010 All Rights Reserved.