共用方式為


IDocumentPaginatorSource.DocumentPaginator 屬性

定義

在衍生類別中實作時,取得執行內容分頁的物件。

public:
 property System::Windows::Documents::DocumentPaginator ^ DocumentPaginator { System::Windows::Documents::DocumentPaginator ^ get(); };
public System.Windows.Documents.DocumentPaginator DocumentPaginator { get; }
member this.DocumentPaginator : System.Windows.Documents.DocumentPaginator
Public ReadOnly Property DocumentPaginator As DocumentPaginator

屬性值

DocumentPaginator

執行實際內容分頁的物件。

範例

下列範例顯示 屬性的使用 DocumentPaginator

// ------------------------ 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

適用於