ESRI.ArcGIS.ADF.IMS
LayoutInfo Property
See Also  Example Send Feedback
ESRI.ArcGIS.ADF.IMS.Carto Namespace > MapService Class : LayoutInfo Property




Gets the LayoutInfo object, if any, associated with this MapService.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property LayoutInfo As LayoutInfo
Visual Basic (Usage)Copy Code
Dim instance As MapService
Dim value As LayoutInfo
 
value = instance.LayoutInfo
C# 
public LayoutInfo LayoutInfo {get;}

Property Value

A LayoutInfo with information about the ArcMap service layout, or null if the MapService connects to a standard image service.

Example

This example retrieves the LayoutInfo from the MapService object and prints the page units to a label control.
C#Copy Code
LayoutInfo layoutInfo = mapService.LayoutInfo;
lblLayoutInfo.Text = "Layout page units are " + layoutInfo.Units.ToString();
Visual BasicCopy Code
Dim layoutInfo As LayoutInfo = mapService.LayoutInfo
lblLayoutInfo.Text = "Layout page units are " + layoutInfo.Units.ToString()

Remarks

The LayoutInfo object provides information about the layout within an ArcMap image service, including page units and page size.

This property will be null for standard ArcIMS image services.

To actually use a layout, call CreateLayoutView() to obtain a LayoutView object.

This property, as with all properties of MapService, is read-only.

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.