ESRI.ArcGIS.ADF.Web Send comments on this topic.
ElementGraphicsLayer Class
See Also  Members  
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 ESRI Developer Network).

Inheritance Hierarchy

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

Requirements

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

See Also

© 2009 All Rights Reserved.