Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

MapPrintSizeMode Enum

Lists the values specifying size modes used when a map is printed or exported.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

NuGet Package: DevExpress.Win.Map

#Declaration

public enum MapPrintSizeMode

#Members

Name Description
Normal

A map is printed in the identical size it appears on the form.

MapPrintSizeMode_Normal

Zoom

A map is resized proportionally (without clipping), so that it best fits the page on which it is printed.

MapPrintSizeMode_Zoom

Stretch

A map is stretched or shrunk to fit the page on which it is printed.

MapPrintSizeMode_Stretch

#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

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;
}
See Also