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
Initializes a new instance of the TableViewDefinitionPrintRenderer class.
Properties
Gets or sets the current print page. Used for Multi-page printing.
public int CurrentPrintPage { get; set; }
The current print page.
Gets or sets the print pages. Collection of PrintPageColumnsCollection, where each collection represents a separate page.
public PrintPagesCollection PrintPages { get; set; }
The print pages.
Gets the view definition type this print style is for.
public override Type ViewDefinitionType { get; }
The type of the view definition.
Overrides:
Methods
Renders a whole page using the settings provided.
public override void DrawPage(PrintGridTraverser traverser, Rectangle drawArea, Graphics graphics, GridPrintSettings settings, int pageNumber)
The traverser to iterate the grid with.
drawAreaRectangleThe size of the drawable area.
graphicsGraphicsThe graphics used for the drawing.
settingsGridPrintSettingsThe print settings used for the drawing.
pageNumberintThe number of the current page.
Overrides:
Gets the row size using the provided row layout.
protected virtual Size GetRowSize(GridViewRowInfo row, TableViewRowLayout rowLayout)
The row to measure.
rowLayoutTableViewRowLayoutThe row layout to be used for the measure.
Returns:The size of the row.
Prints a single row of the RadGridView.
protected virtual void PrintRow(GridViewRowInfo row, TableViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics, Rectangle drawArea)
The actual row that is being printed.
rowLayoutTableViewRowLayoutThe ColumnGroupRowLayout used for layouting the cells.
settingsGridPrintSettingsThe print settings to print the row with.
currentXintThe X coordinate that the row should start to paint.
currentYintThe Y coordinate that the row should start to paint.
graphicsGraphicsThe Graphics used for the drawing.
drawAreaRectangleThe available draw area to print the row in.
Prints a single row of the RadGridView.
protected virtual void PrintRow(GridViewRowInfo row, TableViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics)
The actual row that is being printed.
rowLayoutTableViewRowLayoutThe ColumnGroupRowLayout used for layouting the cells.
settingsGridPrintSettingsThe print settings to print the row with.
currentXintThe X coordinate that the row should start to paint.
currentYintThe Y coordinate that the row should start to paint.
graphicsGraphicsThe Graphics used for the drawing.
Prints a single cell that is wide as the whole RadGridView.
protected virtual void PrintRowWideCell(GridViewRowInfo row, TableViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics)
The actual row that is being printed.
rowLayoutTableViewRowLayoutThe ColumnGroupRowLayout used for layouting the cells.
settingsGridPrintSettingsThe print settings to print the row with.
currentXintThe X coordinate that the row should start to paint.
currentYintThe Y coordinate that the row should start to paint.
graphicsGraphicsThe Graphics used for the drawing.
Resets the print style for subsequent use.
public override void Reset()
Overrides:
Restores the state of the columns.
protected virtual void RestoreColumnsState(ColumnsState state)
The state.
Saves the state of the columns.
protected virtual ColumnsState SaveColumnsState(GridViewTemplate template)
The template.
Returns: