PageSetupDialog.EnableMetric Property


Gets or sets a value indicating whether the margin settings, when displayed in millimeters, should be automatically converted to and from hundredths of an inch.

 property bool EnableMetric { bool get(); void set(bool value); };
public bool EnableMetric { get; set; }
member this.EnableMetric : bool with get, set
Public Property EnableMetric As Boolean

Property Value

true if the margins should be automatically converted; otherwise, false. The default is false.



The PageSettings class measures PageSettings.Margins in hundredths of an inch, but the PageSetupDialog allows users to set margins in inches or millimeters depending on the culture settings for the system running the application.

In the .NET Framework version 2.0, you should set this property to true if your application could be used in cultures that measure document margins in millimeters. If you are doing this conversion yourself, as was required in versions of the .NET Framework earlier than version 2.0, you should use the default value of false.

Applies to