Draws the scalebar using the input parameters and the scalebar functionality properties.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As IScaleBarFunctionality
Dim mapFunctionalityName As String
Dim mapExtent As ESRI.ArcGIS.ADF.Web.Geometry.Envelope
Dim mapWidth As Integer
Dim mapHeight As Integer
Dim value As ESRI.ArcGIS.ADF.Web.CartoImage
value = instance.Draw(mapFunctionalityName, mapExtent, mapWidth, mapHeight) |
Parameters
- mapFunctionalityName
- Name of the map functionality to use for drawing. Some data sources may allow a null value.
- mapExtent
- Extent of the map to use for drawing the scalebar.
- mapWidth
- Width of the map to use for drawing the scalebar.
- mapHeight
- Height of the map to use for drawing the scalebar.
Return Value
CartoImage containing the scalebar MIME data or image URL.
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