windowsforms-devexpress-dot-xtramap-dot-mapcontrol-440d7f98.md
Provides access to the map control’s printing options.
Namespace : DevExpress.XtraMap
Assembly : DevExpress.XtraMap.v25.2.dll
NuGet Package : DevExpress.Win.Map
public PrintOptions PrintOptions { get; }
Public ReadOnly Property PrintOptions As PrintOptions
| Type | Description |
|---|---|
| PrintOptions |
A PrintOptions object which provides access to the map’s printing options.
|
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.
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
See Also