Class TableViewDefinitionPrintRenderer
Represents the print renderer for the table view definition.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class TableViewDefinitionPrintRenderer : BaseGridPrintRenderer, IGridPrintRenderer
Constructors
TableViewDefinitionPrintRenderer(RadGridView)
Initializes a new instance of the TableViewDefinitionPrintRenderer class.
Declaration
public TableViewDefinitionPrintRenderer(RadGridView grid)
Parameters
|
RadGridView
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
|
System.Int32
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
|
PrintPagesCollection
The print pages. |
ViewDefinitionType
Gets the view definition type this print style is for.
Declaration
public override Type ViewDefinitionType { get; }
Property Value
|
System.Type
The type of the view definition. |
Overrides
Methods
DrawPage(PrintGridTraverser, Rectangle, Graphics, GridPrintSettings, Int32)
Renders a whole page using the settings provided.
Declaration
public override void DrawPage(PrintGridTraverser traverser, Rectangle drawArea, Graphics graphics, GridPrintSettings settings, int pageNumber)
Parameters
|
PrintGridTraverser
traverser
The traverser to iterate the grid with. |
|
System.Drawing.Rectangle
drawArea
The size of the drawable area. |
|
System.Drawing.Graphics
graphics
The graphics used for the drawing. |
|
GridPrintSettings
settings
The print settings used for the drawing. |
|
System.Int32
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
|
GridViewRowInfo
row
The row to measure. |
|
TableViewRowLayout
rowLayout
The row layout to be used for the measure. |
Returns
|
System.Drawing.Size
The size of the row. |
PrintRow(GridViewRowInfo, TableViewRowLayout, GridPrintSettings, Int32, Int32, 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
|
GridViewRowInfo
row
The actual row that is being printed. |
|
TableViewRowLayout
rowLayout
The ColumnGroupRowLayout used for layouting the cells. |
|
GridPrintSettings
settings
The print settings to print the row with. |
|
System.Int32
currentX
The X coordinate that the row should start to paint. |
|
System.Int32
currentY
The Y coordinate that the row should start to paint. |
|
System.Drawing.Graphics
graphics
The System.Drawing.Graphics used for the drawing. |
PrintRow(GridViewRowInfo, TableViewRowLayout, GridPrintSettings, Int32, Int32, 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
|
GridViewRowInfo
row
The actual row that is being printed. |
|
TableViewRowLayout
rowLayout
The ColumnGroupRowLayout used for layouting the cells. |
|
GridPrintSettings
settings
The print settings to print the row with. |
|
System.Int32
currentX
The X coordinate that the row should start to paint. |
|
System.Int32
currentY
The Y coordinate that the row should start to paint. |
|
System.Drawing.Graphics
graphics
The System.Drawing.Graphics used for the drawing. |
|
System.Drawing.Rectangle
drawArea
The available draw area to print the row in. |
PrintRowWideCell(GridViewRowInfo, TableViewRowLayout, GridPrintSettings, Int32, Int32, 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
|
GridViewRowInfo
row
The actual row that is being printed. |
|
TableViewRowLayout
rowLayout
The ColumnGroupRowLayout used for layouting the cells. |
|
GridPrintSettings
settings
The print settings to print the row with. |
|
System.Int32
currentX
The X coordinate that the row should start to paint. |
|
System.Int32
currentY
The Y coordinate that the row should start to paint. |
|
System.Drawing.Graphics
graphics
The System.Drawing.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
|
ColumnsState
state
The state. |
SaveColumnsState(GridViewTemplate)
Saves the state of the columns.
Declaration
protected virtual ColumnsState SaveColumnsState(GridViewTemplate template)
Parameters
|
GridViewTemplate
template
The template. |
Returns
|
ColumnsState
|