PageSetupDialog.EnableMetric Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[BrowsableAttribute(true)]
public bool EnableMetric { get; set; }

Property Value

Type: System.Boolean

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.

.NET Framework
Available since 2.0
Return to top
Show: