ESRI.ArcGIS.ADF.IMS
Draw(SpatialReference) Method
See Also 
ESRI.ArcGIS.ADF.IMS.Carto Namespace > LayoutView Class > Draw Method : Draw(SpatialReference) Method




newSpatialReference
Draws the layout using the specified spatial reference.

Syntax

Visual Basic (Declaration) 
Public Overloads Overrides Function Draw( _
   ByVal newSpatialReference As SpatialReference _
) As CartoImage
Visual Basic (Usage)Copy Code
Dim instance As LayoutView
Dim newSpatialReference As SpatialReference
Dim value As CartoImage
 
value = instance.Draw(newSpatialReference)
C# 
public override CartoImage Draw( 
   SpatialReference newSpatialReference
)

Parameters

newSpatialReference

Return Value

New redrawn map image with specified spatial reference, in the form of a CartoImage object. Use CartoImage.Url to retrieve the image's URL.

Example

For an example of drawing a layout, see the LayoutView overview.

Remarks

When using this method, the spatial reference's coordinate system and datum will apply to all data frames in the layout. If the layout contains multiple data frames, and you wish to apply different coordinate systems, set the spatial reference for each data frame via the DataFrames collection of the LayoutView, and then use a Draw method with no spatial reference parameter.

See Also

© 2010 All Rights Reserved.