ESRI.ArcGIS.ADF.IMS
CreateLayoutView Method
See Also  Example
ESRI.ArcGIS.ADF.IMS.Carto Namespace > MapService Class : CreateLayoutView Method




Creates a new LayoutView for an ArcMap image service.

Syntax

Visual Basic (Declaration) 
Public Function CreateLayoutView() As LayoutView
Visual Basic (Usage)Copy Code
Dim instance As MapService
Dim value As LayoutView
 
value = instance.CreateLayoutView()
C# 
public LayoutView CreateLayoutView()

Return Value

A new LayoutView for ArcMap services, or null for standard image services.

Example

This example creates a layout view from an existing MapService object and prints a property of the layout view. See LayoutView class for more examples.
C#Copy Code
LayoutView layoutView = mapService.CreateLayoutView(); 

lblLayoutInfo.Text = "Layout page units are " + layoutView.Units.ToString(); 

    
Visual BasicCopy Code
Dim layoutView As LayoutView = mapService.CreateLayoutView()

lblLayoutInfo.Text = "Layout page units are " + layoutView.Units.ToString()

Remarks

Only use this method if the map service is an ArcMap image service. If used with a standard image service, this method will return null (Nothing).

See Also

© 2010 All Rights Reserved.