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
|
Return 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
See Also