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




location
units
Constructs a ScaleBar object.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal location As Point, _
   ByVal units As AcetateUnits _
)
Visual Basic (Usage)Copy Code
Dim location As Point
Dim units As AcetateUnits
 
Dim instance As New ScaleBar(location, units)
C# 
public ScaleBar( 
   Point location,
   AcetateUnits units
)

Parameters

location
units

Example

This example creates a point for the scalebar location, then creates the scalebar. For a more extensive example, see the ScaleBar overview.
C#Copy Code
Point scalebarPt = new Point(30, 250);
ScaleBar scalebar = new ScaleBar(Point, AcetateUnits.Pixel);
Visual BasicCopy Code
Dim scalebarPt As New Point(30, 250)
Dim scalebar As New ScaleBar(Point, AcetateUnits.Pixel)

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.