ClassTableViewDefinitionPrintRenderer
Represents the print renderer for the table view definition.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class TableViewDefinitionPrintRenderer : BaseGridPrintRenderer, IGridPrintRenderer
Inheritance: objectBaseGridPrintRendererTableViewDefinitionPrintRenderer
Implements:
Inherited Members
Constructors
TableViewDefinitionPrintRenderer(RadGridView)
Initializes a new instance of the TableViewDefinitionPrintRenderer class.
Declaration
public TableViewDefinitionPrintRenderer(RadGridView grid)
Parameters
grid
The grid.
Properties
CurrentPrintPage
Gets or sets the current print page. Used for Multi-page printing.
Declaration
public int CurrentPrintPage { get; set; }
Property Value
The current print page.
PrintPages
Gets or sets the print pages. Collection of PrintPageColumnsCollection, where each collection represents a separate page.
Declaration
public PrintPagesCollection PrintPages { get; set; }
Property Value
The print pages.
ViewDefinitionType
Gets the view definition type this print style is for.
Declaration
public override Type ViewDefinitionType { get; }
Property Value
The type of the view definition.
Overrides
Methods
DrawPage(PrintGridTraverser, Rectangle, Graphics, GridPrintSettings, int)
Renders a whole page using the settings provided.
Declaration
public override void DrawPage(PrintGridTraverser traverser, Rectangle drawArea, Graphics graphics, GridPrintSettings settings, int pageNumber)
Parameters
traverser
The traverser to iterate the grid with.
drawArea
The size of the drawable area.
graphics
The graphics used for the drawing.
settings
The print settings used for the drawing.
pageNumber
The number of the current page.
Overrides
GetRowSize(GridViewRowInfo, TableViewRowLayout)
Gets the row size using the provided row layout.
Declaration
protected virtual Size GetRowSize(GridViewRowInfo row, TableViewRowLayout rowLayout)
Parameters
row
The row to measure.
rowLayout
The row layout to be used for the measure.
Returns
The size of the row.
PrintRow(GridViewRowInfo, TableViewRowLayout, GridPrintSettings, int, int, Graphics)
Prints a single row of the RadGridView.
Declaration
protected virtual void PrintRow(GridViewRowInfo row, TableViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics)
Parameters
row
The actual row that is being printed.
rowLayout
The ColumnGroupRowLayout used for layouting the cells.
settings
The print settings to print the row with.
currentX
The X coordinate that the row should start to paint.
currentY
The Y coordinate that the row should start to paint.
graphics
The Graphics used for the drawing.
PrintRow(GridViewRowInfo, TableViewRowLayout, GridPrintSettings, int, int, Graphics, Rectangle)
Prints a single row of the RadGridView.
Declaration
protected virtual void PrintRow(GridViewRowInfo row, TableViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics, Rectangle drawArea)
Parameters
row
The actual row that is being printed.
rowLayout
The ColumnGroupRowLayout used for layouting the cells.
settings
The print settings to print the row with.
currentX
The X coordinate that the row should start to paint.
currentY
The Y coordinate that the row should start to paint.
graphics
The Graphics used for the drawing.
drawArea
The available draw area to print the row in.
PrintRowWideCell(GridViewRowInfo, TableViewRowLayout, GridPrintSettings, int, int, Graphics)
Prints a single cell that is wide as the whole RadGridView.
Declaration
protected virtual void PrintRowWideCell(GridViewRowInfo row, TableViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics)
Parameters
row
The actual row that is being printed.
rowLayout
The ColumnGroupRowLayout used for layouting the cells.
settings
The print settings to print the row with.
currentX
The X coordinate that the row should start to paint.
currentY
The Y coordinate that the row should start to paint.
graphics
The Graphics used for the drawing.
Reset()
Resets the print style for subsequent use.
Declaration
public override void Reset()
Overrides
RestoreColumnsState(ColumnsState)
Restores the state of the columns.
Declaration
protected virtual void RestoreColumnsState(ColumnsState state)
Parameters
state
The state.
SaveColumnsState(GridViewTemplate)
Saves the state of the columns.
Declaration
protected virtual ColumnsState SaveColumnsState(GridViewTemplate template)
Parameters
template
The template.
Returns