ClassHtmlViewDefinitionPrintRenderer
Represents the print renderer for the HtmlViewDefinition.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class HtmlViewDefinitionPrintRenderer : BaseGridPrintRenderer, IGridPrintRenderer
Inheritance: objectBaseGridPrintRendererHtmlViewDefinitionPrintRenderer
Implements:
Inherited Members
Constructors
HtmlViewDefinitionPrintRenderer(RadGridView)
Initializes a new instance of the HtmlViewDefinitionPrintRenderer class.
Declaration
public HtmlViewDefinitionPrintRenderer(RadGridView grid)
Parameters
grid
The grid.
Properties
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, HtmlViewRowLayout)
Gets the row size using the provided row layout.
Declaration
protected virtual Size GetRowSize(GridViewRowInfo row, HtmlViewRowLayout 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, HtmlViewRowLayout, GridPrintSettings, int, int, Graphics)
Prints a single row of the RadGridView.
Declaration
protected virtual void PrintRow(GridViewRowInfo row, HtmlViewRowLayout 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.
PrintRowWideCell(GridViewRowInfo, HtmlViewRowLayout, GridPrintSettings, int, int, Graphics)
Prints a single cell that is wide as the whole RadGridView.
Declaration
protected virtual void PrintRowWideCell(GridViewRowInfo row, HtmlViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics)
Parameters
row
The actual row that is being printed.
rowLayout
The ColumnGroupRowLayout used for lay outing 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