|Visual Basic (Declaration)|
<("code")> <()> Public Class ElementGraphicsLayer Inherits GraphicsLayer
|Visual Basic (Usage)||Copy Code|
[("code")] [()] public class ElementGraphicsLayer : GraphicsLayer
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.
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