PrinterSettings.MaximumPage 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定可在 FromPage 內選取的最大 ToPage 或 PrintDialog。
public:
property int MaximumPage { int get(); void set(int value); };
public int MaximumPage { get; set; }
member this.MaximumPage : int with get, set
Public Property MaximumPage As Integer
屬性值
可在 FromPage 內選取的最大 ToPage 或 PrintDialog。
例外狀況
MaximumPage 屬性的值小於 0。
備註
當使用者選取列印範圍時,會FromPage使用 PrintDialog 和 ToPage 屬性。 屬性 PrintDialog.AllowSomePages 必須設定為 true
,才能讓使用者指定列印範圍。 以程式設計方式設定 FromPage 或 ToPage 值時,請確定它們位於 和 MaximumPage 屬性所MinimumPage定義的範圍內,或在顯示 PrintDialog時擲回例外狀況。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應