ESRI.ArcGIS.ADF.Web.DataSources
Draw Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources Namespace > IScaleBarFunctionality Interface : Draw Method




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.
Draws the scalebar using the input parameters and the scalebar functionality properties.

Syntax

Visual Basic (Declaration) 
Function Draw( _
   ByVal mapFunctionalityName As String, _
   ByVal mapExtent As Envelope, _
   ByVal mapWidth As Integer, _
   ByVal mapHeight As Integer _
) As CartoImage
Visual Basic (Usage)Copy Code
Dim instance As IScaleBarFunctionality
Dim mapFunctionalityName As String
Dim mapExtent As Envelope
Dim mapWidth As Integer
Dim mapHeight As Integer
Dim value As CartoImage
 
value = instance.Draw(mapFunctionalityName, mapExtent, mapWidth, mapHeight)
C# 
CartoImage Draw( 
   string mapFunctionalityName,
   Envelope mapExtent,
   int mapWidth,
   int 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.

See Also

© 2010 All Rights Reserved.