ESRI.ArcGIS.ADF.IMS
GeometryElement Constructor(AcetateUnits,Geometry,Symbol)
See Also  Example Send Feedback
ESRI.ArcGIS.ADF.IMS.Display.AcetateElement Namespace > GeometryElement Class > GeometryElement Constructor : GeometryElement Constructor(AcetateUnits,Geometry,Symbol)




units
Units for the coordinates within the Element of the GeometryElement
element
Element that defines the geometry for the GeometryElement
symbol
Symbol that defines how the GeometryElement is displayed
Constructs a GeometryElement object.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal units As AcetateUnits, _
   ByVal element As Geometry, _
   ByVal symbol As Symbol _
)
Visual Basic (Usage)Copy Code
Dim units As AcetateUnits
Dim element As Geometry
Dim symbol As Symbol
 
Dim instance As New GeometryElement(units, element, symbol)
C# 
public GeometryElement( 
   AcetateUnits units,
   Geometry element,
   Symbol symbol
)

Parameters

units
Units for the coordinates within the Element of the GeometryElement
element
Element that defines the geometry for the GeometryElement
symbol
Symbol that defines how the GeometryElement is displayed

Example

This sample creates an acetate element, adds it to an acetate layer, sets the minimum and maximum scales for the acetate layer, and adds the acetate layer to the map.
C#Copy Code
// Create the point and symbol for the acetate graphic
Point pt = new Point(75.0, 45.0);
SimpleMarkerSymbol symbol = new SimpleMarkerSymbol(Drawing.Color.Blue, 15, MarkerSymbolType.Circle);
 
// Create the acetate graphic
GeometryElement acetatePt = new GeometryElement(AcetateUnits.Database, pt, symbol);
 
// Create the acetate layer and set minscale and maxscale
AcetateLayer acetateLayer = new AcetateLayer("mapGraphics");
acetateLayer.MinScale = "1:1000000";
acetateLayer.MaxScale = "1:20000000";
 
// Add acetate layer to the map
acetateLayer.AcetateElements.Add(acetatePt);
mapView.Layers.Add(acetateLayer);
Visual BasicCopy Code
' Create the point and symbol for the acetate graphic
Dim pt As New Point(75.0, 45.0)
Dim symbol As New SimpleMarkerSymbol(Drawing.Color.Blue, 15, MarkerSymbolType.Circle)
 
' Create the acetate graphic
Dim acetatePt As New GeometryElement(AcetateUnits.Database, pt, symbol)
 
' Create the acetate layer and set minscale and maxscale
Dim acetateLayer As New AcetateLayer("mapGraphics")
acetateLayer.MinScale = "1:1000000"
acetateLayer.MaxScale = "1:20000000"
 
' Add acetate layer to the map
acetateLayer.AcetateElements.Add(acetatePt)
mapView.Layers.Add(acetateLayer)

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.