![]() ![]() |
ESRI.ArcGIS.ADF.IMS | |
AcetateLayer Class | |
Members Example See Also Send Feedback |
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace : AcetateLayer Class |

Visual Basic (Declaration) | |
---|---|
<SerializableAttribute()> Public Class AcetateLayer Inherits Layer |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As AcetateLayer |
C# | |
---|---|
[SerializableAttribute()] public class AcetateLayer : Layer |
The following example creates an acetate layer, adds a north arrow to it, then adds the acetate layer to the map.
C# | ![]() |
---|---|
// 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 Basic | ![]() |
---|---|
' 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) |
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.
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