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 |
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 Basic | Copy Code |
---|
Dim layoutInfo As LayoutInfo = mapService.LayoutInfo
lblLayoutInfo.Text = "Layout page units are " + layoutInfo.Units.ToString() |
Remarks
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