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




DisplayBuffer%

Object Model

AcetateLayer Class

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.

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

© 2011 All Rights Reserved.