Bahasa

DocumentPaginator.PageSize Properti

Definisi

Saat ditimpa di kelas turunan, mendapatkan atau mengatur lebar dan tinggi yang disarankan dari setiap halaman.

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

Nilai Properti

mewakili Size lebar dan tinggi setiap halaman.

Contoh

Contoh berikut menunjukkan cara mengatur 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

Keterangan

DocumentPaginator mungkin mengambil alih nilai properti ini. Pengguna harus memeriksa DocumentPage.Size.

Berlaku untuk