MapPrintSizeMode Enum
Lists the values specifying size modes used when a map is printed or exported.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v18.1.dll
Declaration
Members
Name | Description |
---|---|
Normal
|
A map is printed in the identical size it appears on the form. |
Zoom
|
A map is resized proportionally (without clipping), so that it best fits the page on which it is printed. |
Stretch
|
A map is stretched or shrunk to fit the page on which it is printed. |
Related API Members
The following properties accept/return MapPrintSizeMode values:
Remarks
This enumeration is used to specify the value of the PrintOptions.SizeMode of the instance stored in the MapControl.PrintOptions property. These options are used by printing (MapControl.ShowPrintPreview, MapControl.ShowRibbonPrintPreview, MapControl.ShowPrintDialog) and exporting methods (MapControl.ExportToImage, MapControl.ExportToMht, MapControl.ExportToPdf, MapControl.ExportToRtf, MapControl.ExportToXls, MapControl.ExportToXlsx).
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-print-or-export-a-map-t185956
void InitializeSizeModeComboBox() {
cbSizeMode.DataSource = Enum.GetValues(typeof(MapPrintSizeMode));
}
private void cbSizeMode_SelectedIndexChanged(object sender, EventArgs e) {
MapPrintSizeMode mode = (MapPrintSizeMode)cbSizeMode.SelectedValue;
mapControl.PrintOptions.SizeMode = mode;
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MapPrintSizeMode enum.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.