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

MapControl.PrintOptions Property

Provides access to the map control’s printing options.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

NuGet Package: DevExpress.Win.Map

#Declaration

public PrintOptions PrintOptions { get; }

#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

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