PageSetupDialog.EnableMetric 屬性

定義

取得或設定值,以表示當以公釐為單位顯示時,邊界設定是否自動在公釐與百分之一英吋間轉換。

public:
 property bool EnableMetric { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(true)]
public bool EnableMetric { get; set; }
[<System.ComponentModel.Browsable(true)>]
member this.EnableMetric : bool with get, set
Public Property EnableMetric As Boolean

屬性值

Boolean

如果應該自動轉換邊界則為 true,否則為 false。 預設為 false

屬性

備註

類別 PageSettings 會測量 PageSettings.Margins 以百分之一英吋為單位,但 PageSetupDialog 可讓使用者根據執行應用程式之系統的文化特性設定,以英吋或公釐為單位來設定邊界。

在 .NET Framework 2.0 版中,如果您的應用程式可用於測量公釐檔邊界的文化特性,您應該將此屬性 true 設定為 。 如果您自行進行此轉換,如同在 2.0 版之前的 .NET Framework 版本中的必要專案,您應該使用 的預設值 false

適用於