Skip to main content

PrintOptions Class

Definition

Assembly:Avalonia.Controls.PdfViewer
Package:Avalonia.Controls.PdfViewer

Options for printing.

public class PrintOptions

Inheritance: object -> PrintOptions

Constructors

NameDescription
PrintOptionsNo summary available.

PrintOptions Constructor

public PrintOptions()

Properties

NameDescription
AnchorControl the print sheet is anchored to where the platform uses a popover (iPad). The viewer fills this in automatically with the toolbar button that opened it.
ColorPrint in color or grayscale.
CopiesNumber of copies.
DuplexDuplex printing mode.
OrientationPage orientation.
OwnerTop level that owns the system print dialog. The viewer fills this in automatically.
PageRangePage range to print (null for all pages).
ScalingPage scaling mode.
TitleDocument title for the print job.

Anchor Property

Control the print sheet is anchored to where the platform uses a popover (iPad). The viewer fills this in automatically with the toolbar button that opened it.

public Avalonia.Visual Anchor { get; set; }

Color Property

Print in color or grayscale.

public bool Color { get; set; }

Copies Property

Number of copies.

public int Copies { get; set; }

Duplex Property

Duplex printing mode.

public Avalonia.Controls.Pdf.Services.DuplexMode Duplex { get; set; }

Orientation Property

Page orientation.

public Avalonia.Controls.Pdf.Services.PageOrientation Orientation { get; set; }

Owner Property

Top level that owns the system print dialog. The viewer fills this in automatically.

public Avalonia.Controls.TopLevel Owner { get; set; }

PageRange Property

Page range to print (null for all pages).

public Avalonia.Controls.Pdf.Services.PageRange PageRange { get; set; }

Scaling Property

Page scaling mode.

public Avalonia.Controls.Pdf.Services.PageScaling Scaling { get; set; }

Title Property

Document title for the print job.

public string Title { get; set; }