ESRI.ArcGIS.ADF.IMS
ScaleBar Constructor(Point,AcetateUnits)
See Also  Example
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 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)

See Also

© 2010 All Rights Reserved.