DocumentPaginator.PageSize プロパティ

定義

派生クラスでオーバーライドされると、各ページの幅と高さの推奨値を取得または設定します。

public:
 abstract property System::Windows::Size PageSize { System::Windows::Size get(); void set(System::Windows::Size value); };
public abstract System.Windows.Size PageSize { get; set; }
member this.PageSize : System.Windows.Size with get, set
Public MustOverride Property PageSize As Size

プロパティ値

Size

各ページの幅と高さを表す Size

PageSize を設定する方法を次の例に示します。

// ------------------------ CreateFixedDocument -----------------------
/// <summary>
///   Creates an empty FixedDocument.</summary>
/// <returns>
///   An empty FixedDocument without any content.</returns>
private FixedDocument CreateFixedDocument()
{
    FixedDocument fixedDocument = new FixedDocument();
    fixedDocument.DocumentPaginator.PageSize = new Size(96 * 8.5, 96 * 11);
    return fixedDocument;
}
' ------------------------ CreateFixedDocument -----------------------
''' <summary>
'''   Creates an empty FixedDocument.</summary>
''' <returns>
'''   An empty FixedDocument without any content.</returns>
Private Function CreateFixedDocument() As FixedDocument
    Dim fixedDocument As New FixedDocument()
    fixedDocument.DocumentPaginator.PageSize = New Size(96 * 8.5, 96 * 11)
    Return fixedDocument
End Function

注釈

DocumentPaginatorこのプロパティの値をオーバーライドできます。 ユーザーは確認 DocumentPage.Sizeする必要があります。

適用対象