DocumentPage Constructors

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.

Initializes a new instance of the DocumentPage class.

Overloads

DocumentPage(Visual)

Initializes a new instance of the DocumentPage class by using the specified Visual.

DocumentPage(Visual, Size, Rect, Rect)

Initializes a new instance of the DocumentPage class by using the specified Visual and box sizes.

DocumentPage(Visual)

Initializes a new instance of the DocumentPage class by using the specified Visual.

C#
public DocumentPage(System.Windows.Media.Visual visual);

Parameters

visual
Visual

The visual representation of the page.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

DocumentPage(Visual, Size, Rect, Rect)

Initializes a new instance of the DocumentPage class by using the specified Visual and box sizes.

C#
public DocumentPage(System.Windows.Media.Visual visual, System.Windows.Size pageSize, System.Windows.Rect bleedBox, System.Windows.Rect contentBox);

Parameters

visual
Visual

The visual representation of the page.

pageSize
Size

The size of the page, including margins, as it will be after any cropping.

bleedBox
Rect

The area for print production-related bleeds, registration marks, and crop marks that may appear on the physical sheet outside the logical page boundaries.

contentBox
Rect

The area of the page within the margins.

Remarks

The bleedBox dimensions may be greater than the pageSize dimensions when it is expected that the physical sheets will be cropped to their final page size.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10