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

Encapsulates data regarding print preview.

Definition

Namespace:Telerik.Windows.Controls.Diagrams

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

C#
public class RadDiagramPagesInfo

Inheritance: objectRadDiagramPagesInfo

Constructors

Initializes a new instance of the RadDiagramPagesInfo class. This constructor will be obsolete.

C#
public RadDiagramPagesInfo(IEnumerable<WriteableBitmap> pages, int numberOfColumns, Size pageSize, Thickness pageMargin)
Parameters:pagesIEnumerable<WriteableBitmap>

Collection with print pages.

numberOfColumnsint

Number of columns in the pages collection.

pageSizeSize

Size of the page.

pageMarginThickness

Margin around the page content.

Properties

Gets or sets the background for each page.

C#
public Brush Background { get; set; }

Gets or sets the resolution to use during printing.

C#
public double Dpi { get; set; }

Gets the number of columns in which pages are arranged.

C#
public int NumberOfColumns { get; }

PageMargin

Thickness

Gets the margin on each page.

C#
public Thickness PageMargin { get; }

Pages

IEnumerable<WriteableBitmap>

Gets the collection with images of all print pages. This property will be obsolete.

C#
public IEnumerable<WriteableBitmap> Pages { get; }

Gets the size of each page.

C#
public Size PageSize { get; }

Methods

GetPage(int)

WriteableBitmap

Returns the page at given index.

C#
public WriteableBitmap GetPage(int pageIndex)
Parameters:pageIndexintReturns:

WriteableBitmap

Returns the number of pages.

C#
public int GetPageCount()
Returns:

int