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
Form1.cs |
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;
}
|
Form1.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
|