Back to Devexpress

PrintOptions Class

windowsforms-devexpress-dot-xtramap-dot-printing.md

latest2.4 KB
Original Source

PrintOptions Class

Provides access to the map’s printing options.

Namespace : DevExpress.XtraMap.Printing

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public class PrintOptions :
    MapNotificationOptions
vb
Public Class PrintOptions
    Inherits MapNotificationOptions

The following members return PrintOptions objects:

Remarks

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.

Example

csharp
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;
}
vb
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

Inheritance

Object ViewStatePersisterCore BaseOptions MapNotificationOptions PrintOptions

See Also

PrintOptions Members

DevExpress.XtraMap.Printing Namespace