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

Represents the print renderer for the table view definition.

Definition

Constructors

Initializes a new instance of the TableViewDefinitionPrintRenderer class.

C#
public TableViewDefinitionPrintRenderer(RadGridView grid)
Parameters:gridRadGridView

The grid.

Properties

Gets or sets the current print page. Used for Multi-page printing.

C#
public int CurrentPrintPage { get; set; }
Property Value:

The current print page.

Gets or sets the print pages. Collection of PrintPageColumnsCollection, where each collection represents a separate page.

C#
public PrintPagesCollection PrintPages { get; set; }
Property Value:

The print pages.

Gets the view definition type this print style is for.

C#
public override Type ViewDefinitionType { get; }
Property Value:

The type of the view definition.

Overrides: BaseGridPrintRenderer.ViewDefinitionType

Methods

Renders a whole page using the settings provided.

C#
public override void DrawPage(PrintGridTraverser traverser, Rectangle drawArea, Graphics graphics, GridPrintSettings settings, int pageNumber)
Parameters:traverserPrintGridTraverser

The traverser to iterate the grid with.

drawAreaRectangle

The size of the drawable area.

graphicsGraphics

The graphics used for the drawing.

settingsGridPrintSettings

The print settings used for the drawing.

pageNumberint

The number of the current page.

Overrides: BaseGridPrintRenderer.DrawPage(PrintGridTraverser, Rectangle, Graphics, GridPrintSettings, int)

Gets the row size using the provided row layout.

C#
protected virtual Size GetRowSize(GridViewRowInfo row, TableViewRowLayout rowLayout)
Parameters:rowGridViewRowInfo

The row to measure.

rowLayoutTableViewRowLayout

The row layout to be used for the measure.

Returns:

Size

The size of the row.

Prints a single row of the RadGridView.

C#
protected virtual void PrintRow(GridViewRowInfo row, TableViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics, Rectangle drawArea)
Parameters:rowGridViewRowInfo

The actual row that is being printed.

rowLayoutTableViewRowLayout

The ColumnGroupRowLayout used for layouting the cells.

settingsGridPrintSettings

The print settings to print the row with.

currentXint

The X coordinate that the row should start to paint.

currentYint

The Y coordinate that the row should start to paint.

graphicsGraphics

The Graphics used for the drawing.

drawAreaRectangle

The available draw area to print the row in.

Prints a single row of the RadGridView.

C#
protected virtual void PrintRow(GridViewRowInfo row, TableViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics)
Parameters:rowGridViewRowInfo

The actual row that is being printed.

rowLayoutTableViewRowLayout

The ColumnGroupRowLayout used for layouting the cells.

settingsGridPrintSettings

The print settings to print the row with.

currentXint

The X coordinate that the row should start to paint.

currentYint

The Y coordinate that the row should start to paint.

graphicsGraphics

The Graphics used for the drawing.

Prints a single cell that is wide as the whole RadGridView.

C#
protected virtual void PrintRowWideCell(GridViewRowInfo row, TableViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics)
Parameters:rowGridViewRowInfo

The actual row that is being printed.

rowLayoutTableViewRowLayout

The ColumnGroupRowLayout used for layouting the cells.

settingsGridPrintSettings

The print settings to print the row with.

currentXint

The X coordinate that the row should start to paint.

currentYint

The Y coordinate that the row should start to paint.

graphicsGraphics

The Graphics used for the drawing.

Resets the print style for subsequent use.

C#
public override void Reset()

Overrides: BaseGridPrintRenderer.Reset()

Restores the state of the columns.

C#
protected virtual void RestoreColumnsState(ColumnsState state)
Parameters:stateColumnsState

The state.

Saves the state of the columns.

C#
protected virtual ColumnsState SaveColumnsState(GridViewTemplate template)
Parameters:templateGridViewTemplate

The template.

Returns:

ColumnsState