Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

# MgLayout Class Reference
[MgLayout]

Specifies the ResourceId of the PrintLayout to use for a particular map, the title and the type of units to use in the layout. More...

Inherits MgSerializable.

List of all members.

## Public Member Functions
MgResourceIdentifier * | GetLayout ()
| Get the Layout to use when generating the EPlot DWF. If not specified, then the plotted map will fill the space within the page margins.
STRING | GetTitle ()
| Gets the layout title.
STRING | GetUnitType ()
| Gets the layout scale units (US/English or metric units). This value determines the units used in the scale bar definition. This value is ignored if a layout is not specified.
| MgLayout (MgResourceIdentifier *layoutDefinition, CREFSTRING title, CREFSTRING unitType)
| Initializes a new MgLayout object given a layout definition, title and unit type.
void | SetLayout (MgResourceIdentifier *plotLayout)
| Set the Layout to use when generating the EPlot DWF. If not specified, then the plotted map will fill the space within the page margins.
void | SetTitle (CREFSTRING title)
| Sets the layout title.
void | SetUnitType (CREFSTRING unitType)
| Gets the layout scale units (US/English or metric units). This value determines the units used in the scale bar definition. This value is ignored if a layout is not specified.

## Detailed Description

Specifies the ResourceId of the PrintLayout to use for a particular map, the title and the type of units to use in the layout.

Comments or suggestions? Send us feedback.