DocumentPaginator.PageSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, gets or sets the suggested width and height of each page.
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
Property Value
A Size representing the width and height of each page.
Examples
The following example shows how to set the 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
Remarks
The DocumentPaginator may override the value of this property. Users should check DocumentPage.Size.
Applies to
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.