MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
void MgMapPlot::SetExtent ( MgEnvelope extent,
bool  expandToFit 
)

Set the extents of the map.

.NET Syntax
void SetExtent(MgEnvelope extent, bool expandToFit);
Java Syntax
void SetExtent(MgEnvelope extent, boolean expandToFit);
PHP Syntax
void SetExtent(MgEnvelope extent, bool expandToFit);
Parameters:
extent(MgEnvelope) The extents of the map.
expandToFit(boolean/bool) Flag indicating whether the extents should be expanded to fill the space within the page margins.
Returns:
Nothing