Represents a basic class for grid printing.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public abstract class BaseGridPrintRenderer : IGridPrintRenderer
Inheritance: objectBaseGridPrintRenderer
Derived Classes:
Implements:
Constructors
Initializes a new instance of the BaseGridPrintRenderer class.
Properties
Gets the associated RadGridView.
public RadGridView GridView { get; }
Gets the view definition type this print style is for.
public abstract Type ViewDefinitionType { get; }
The type of the view definition.
Implements:
Methods
Creates a data print cell element.
protected virtual CellPrintElement CreateDataCellPrintElement(GridViewCellInfo cellInfo, RectangleF cellBounds)
The actual grid view cell that will be printed.
cellBoundsRectangleFThe bounds definining the print cell element.
Returns:The CellPrintElement to be printed.
Creates a data print cell element.
protected virtual CellPrintElement CreateDataCellPrintElement(GridViewCellInfo cellInfo)
The actual grid view cell that will be printed.
Returns:The CellPrintElement to be printed.
Creates a group print cell element.
protected virtual CellPrintElement CreateGroupCellPrintElement(GridViewGroupRowInfo row)
The group row that this print cell represents.
Returns:The CellPrintElement to be printed.
Creates a header print cell element.
protected virtual CellPrintElement CreateHeaderCellPrintElement(GridViewColumn column)
The column which header is the cell.
Returns:The CellPrintElement to be printed.
Creates an image print cell element.
protected virtual CellPrintElement CreateImageCellPrintElement(GridViewCellInfo cellInfo)
The actual grid cell that holds the image info.
Returns:The CellPrintElement to be printed.
protected virtual CellPrintElement CreateSparklineCellPrintElement(GridViewCellInfo cellInfo, RectangleF cellBounds)
Creates a summary print cell element.
protected virtual CellPrintElement CreateSummaryCellPrintElement(GridViewCellInfo cellInfo)
The actual grid view summary cell that will be printed.
Returns:The CellPrintElement to be printed.
protected virtual void DetachSparkElemnt()
Renders a whole page using the settings provided.
public abstract 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.
Implements:
Gets the cell's desired width
protected virtual SizeF GetCellDesiredSize(GridCellElement cell)
An instance of GridCellElement
Returns:Returns the desired cell's with
Gets the height of a given data row taking into account if the grid AutoSizeRows property is true.
protected virtual int GetDataRowHeight(GridViewRowInfo row, TableViewRowLayoutBase rowLayout)
The row to be measured.
rowLayoutTableViewRowLayoutBaseThe row layout.
Returns:Occurs for hierarchy rows with more than one child views.
protected virtual void OnChildViewPrinting(ChildViewPrintingEventArgs e)
Occurs for each cell that is being printed.
protected virtual void OnPrintCellFormatting(PrintCellFormattingEventArgs e)
Occurs after a cell is being formatted and painted.
protected virtual void OnPrintCellPaint(PrintCellPaintEventArgs e)
Resets the print style for subsequent use.
public abstract void Reset()
Implements:
Events
Fires for hierarchy rows with more than one child views.
public event ChildViewPrintingEventHandler ChildViewPrinting
Fires for each cell that is being printed.
public event PrintCellFormattingEventHandler PrintCellFormatting
Fires after a cell is being formatted and painted.
public event PrintCellPaintEventHandler PrintCellPaint