MapControl.PrintOptions Property
Provides access to the map control’s printing options.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v19.2.dll
Declaration
Property Value
Type | Description |
---|---|
PrintOptions | A PrintOptions object which provides access to the map’s printing options. |
Remarks
The object returned provides a set of properties which specify the map’s elements that are to be printed. Refer to the PrintOptions class description for a list of the available options and their descriptions.
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;
}
See Also