windowsforms-devexpress-dot-xtramap-dot-printing.md
Provides access to the map’s printing options.
Namespace : DevExpress.XtraMap.Printing
Assembly : DevExpress.XtraMap.v25.2.dll
NuGet Package : DevExpress.Win.Map
public class PrintOptions :
MapNotificationOptions
Public Class PrintOptions
Inherits MapNotificationOptions
The following members return PrintOptions objects:
The PrintOptions class provides a set of properties that control how the map is printed. These properties can be accessed via the control’s MapControl.PrintOptions property.
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;
}
Private Sub InitializeSizeModeComboBox()
cbSizeMode.DataSource = System.Enum.GetValues(GetType(MapPrintSizeMode))
End Sub
Private Sub cbSizeMode_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles cbSizeMode.SelectedIndexChanged
Dim mode As MapPrintSizeMode = DirectCast(cbSizeMode.SelectedValue, MapPrintSizeMode)
mapControl.PrintOptions.SizeMode = mode
End Sub
Object ViewStatePersisterCore BaseOptions MapNotificationOptions PrintOptions
See Also