ESRI.ArcGIS.ADF.IMS
AcetateLayer Class
Members  Example  See Also 
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace : AcetateLayer Class




DisplayBufferDisplayBufferAllows graphics and text to be added to the map.

Object Model






Syntax

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

Example

The following example creates an acetate layer, adds a north arrow to it, then adds the acetate layer to the map.
C#Copy Code
// Creates an acetate layer 

AcetateLayer acetate = new AcetateLayer("Acetate"); 

  

// Designates the point where the north arrow will be drawn 

ESRI.ArcGIS.ADF.IMS.Geometry.Point naPoint = new ESRI.ArcGIS.ADF.IMS.Geometry.Point(30, 30); 

  

// Creates the north arrow and adds it to the acetate layer 

NorthArrow northArrow = new NorthArrow(20, naPoint, AcetateUnits.Pixel); 

northArrow.OutlineColor = System.Drawing.Color.Plum; 

acetate.AcetateElements.Add(northArrow); 

  

// Adds the acetate layer to the map and draws the map 

mapView.Layers.Add(acetate); 

    
Visual BasicCopy Code
' Creates an acetate layer

Dim acetate As New AcetateLayer("Acetate")



' Designates the point where the north arrow will be drawn

Dim naPoint As New ESRI.ArcGIS.ADF.IMS.Geometry.Point(30, 30)



' Creates the north arrow and adds it to the acetate layer

Dim northArrow As New NorthArrow(20, naPoint, AcetateUnits.Pixel)

northArrow.OutlineColor = System.Drawing.Color.Plum

acetate.AcetateElements.Add(northArrow)



' Adds the acetate layer to the map and draws the map

mapView.Layers.Add(acetate)

Remarks

If using the ADF Map web control, an alternative to acetate layers is to use a graphics layer on the Map. That option may provide better scaling and flexibility, since it can be handled and drawn separately from the map.

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.ADF.IMS.Carto.Layer.Layer
      ESRI.ArcGIS.ADF.IMS.Carto.Layer.AcetateLayer

See Also

© 2010 All Rights Reserved.