New to Telerik UI for WinFormsStart a free 30-day trial

IPrintable

Interface

Represents an interface for printable objects.

Definition

Methods

Called when the printing begins.

C#
int BeginPrint(RadPrintDocument sender, PrintEventArgs args)
Parameters:senderRadPrintDocument

The that has initiated the printing.

argsPrintEventArgs

The event args.

Returns:

int

The number of pages.

Called when the printing ends.

C#
bool EndPrint(RadPrintDocument sender, PrintEventArgs args)
Parameters:senderRadPrintDocument

The that has initiated the printing.

argsPrintEventArgs

The event args.

Returns:

bool

[false] if cancel

Gets a print settings dialog that is specific for the printable object.

C#
Form GetSettingsDialog(RadPrintDocument document)
Parameters:documentRadPrintDocument

The that has initiated the printing.

Returns:

Form

The dialog.

Prints the page with the specified number.

C#
bool PrintPage(int pageNumber, RadPrintDocument sender, PrintPageEventArgs args)
Parameters:pageNumberint

The number of the current page.

senderRadPrintDocument

The that has initiated the printing.

argsPrintPageEventArgs

The event args.

Returns:

bool

[true] if there are more pages, [false] otherwise