![]() ![]() |
ESRI.ArcGIS.ADF.IMS | |
LayoutInfo Class | |
Members Example See Also Send Feedback |
ESRI.ArcGIS.ADF.IMS.Carto Namespace : LayoutInfo Class |

Visual Basic (Declaration) | |
---|---|
<SerializableAttribute()> Public Class LayoutInfo |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As LayoutInfo |
C# | |
---|---|
[SerializableAttribute()] public class LayoutInfo |
C# | ![]() |
---|---|
LayoutInfo layoutInfo = mapService.LayoutInfo; if (layoutInfo != null) { lblLayoutInfo.Text = "Layout properties: " + "Page size = " + layoutInfo.Extent.Width.ToString("#.0") + " by " + layoutInfo.Extent.Height.ToString("#.0") + " " + layoutInfo.Units.ToString() + "."; } |
Visual Basic | ![]() |
---|---|
Dim layoutInfo As LayoutInfo = mapService.LayoutInfo If Not IsNothing(layoutInfo) Then lblLayoutInfo.Text = "Layout properties: " _ + "Page size = " + layoutInfo.Extent.Width.ToString("#.0") + " by " _ + layoutInfo.Extent.Height.ToString("#.0") _ + " " + layoutInfo.Units.ToString() + "." End If |
This object can be used to determine some properties of the layout for an ArcMap Server image service, prior to actually creating a LayoutView. It is available as a property of MapService. To create a LayoutView for generating layout images, use MapService.CreateLayoutView.
The layout should be printed at the physical size specified in LayoutInfo. Other sizes may not create a desirable appearance. If other layout sizes are needed, a new ArcMap document can be created from the original MXD, and the layout changed to the desired size.
This object will be null (Nothing) for standard image services.
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