DocumentPage 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 DocumentPage 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| DocumentPage(Visual) |
透過指定的 DocumentPage初始化類別的新實例Visual。 |
| DocumentPage(Visual, Size, Rect, Rect) |
利用指定的 DocumentPage 和 盒大小初始化該類別的新Visual實例。 |
DocumentPage(Visual)
透過指定的 DocumentPage初始化類別的新實例Visual。
public:
DocumentPage(System::Windows::Media::Visual ^ visual);
public DocumentPage(System.Windows.Media.Visual visual);
new System.Windows.Documents.DocumentPage : System.Windows.Media.Visual -> System.Windows.Documents.DocumentPage
Public Sub New (visual As Visual)
參數
- visual
- Visual
頁面的視覺呈現。
適用於
DocumentPage(Visual, Size, Rect, Rect)
利用指定的 DocumentPage 和 盒大小初始化該類別的新Visual實例。
public:
DocumentPage(System::Windows::Media::Visual ^ visual, System::Windows::Size pageSize, System::Windows::Rect bleedBox, System::Windows::Rect contentBox);
public DocumentPage(System.Windows.Media.Visual visual, System.Windows.Size pageSize, System.Windows.Rect bleedBox, System.Windows.Rect contentBox);
new System.Windows.Documents.DocumentPage : System.Windows.Media.Visual * System.Windows.Size * System.Windows.Rect * System.Windows.Rect -> System.Windows.Documents.DocumentPage
Public Sub New (visual As Visual, pageSize As Size, bleedBox As Rect, contentBox As Rect)
參數
- visual
- Visual
頁面的視覺呈現。
- pageSize
- Size
頁面大小,包含邊界,視裁切後的長度。
- bleedBox
- Rect
用於印刷生產相關的出血、註冊標記及可能出現在邏輯頁面邊界外實體紙張上的裁切標記區域。
- contentBox
- Rect
頁面邊緣區域。
備註
當實體紙張裁切至最終頁面尺寸時,尺寸 bleedBox 可能會大 pageSize 於預期的尺寸。