ESRI.ArcGIS.ADF.IMS
CreateLayoutView Method
See Also  Example Send Feedback
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).

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

© 2011 All Rights Reserved.