Class
BaseGridPrintRenderer

Represents a basic class for grid printing.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public abstract class BaseGridPrintRenderer : IGridPrintRenderer

Inheritance: objectBaseGridPrintRenderer

Derived Classes: ColumnGroupsViewDefinitionPrintRendererHtmlViewDefinitionPrintRendererTableViewDefinitionPrintRenderer

Implements: IGridPrintRenderer

Constructors

BaseGridPrintRenderer(RadGridView)

Initializes a new instance of the BaseGridPrintRenderer class.

Declaration

cs-api-definition
public BaseGridPrintRenderer(RadGridView grid)

Parameters

grid

RadGridView

The grid.

Properties

GridView

Gets the associated RadGridView.

Declaration

cs-api-definition
public RadGridView GridView { get; }

Property Value

RadGridView

ViewDefinitionType

Gets the view definition type this print style is for.

Declaration

cs-api-definition
public abstract Type ViewDefinitionType { get; }

Property Value

Type

The type of the view definition.

Implements IGridPrintRenderer.ViewDefinitionType

Methods

CreateDataCellPrintElement(GridViewCellInfo)

Creates a data print cell element.

Declaration

cs-api-definition
protected virtual CellPrintElement CreateDataCellPrintElement(GridViewCellInfo cellInfo)

Parameters

cellInfo

GridViewCellInfo

The actual grid view cell that will be printed.

Returns

CellPrintElement

The CellPrintElement to be printed.

CreateDataCellPrintElement(GridViewCellInfo, RectangleF)

Creates a data print cell element.

Declaration

cs-api-definition
protected virtual CellPrintElement CreateDataCellPrintElement(GridViewCellInfo cellInfo, RectangleF cellBounds)

Parameters

cellInfo

GridViewCellInfo

The actual grid view cell that will be printed.

cellBounds

RectangleF

The bounds definining the print cell element.

Returns

CellPrintElement

The CellPrintElement to be printed.

CreateGroupCellPrintElement(GridViewGroupRowInfo)

Creates a group print cell element.

Declaration

cs-api-definition
protected virtual CellPrintElement CreateGroupCellPrintElement(GridViewGroupRowInfo row)

Parameters

row

GridViewGroupRowInfo

The group row that this print cell represents.

Returns

CellPrintElement

The CellPrintElement to be printed.

CreateHeaderCellPrintElement(GridViewColumn)

Creates a header print cell element.

Declaration

cs-api-definition
protected virtual CellPrintElement CreateHeaderCellPrintElement(GridViewColumn column)

Parameters

column

GridViewColumn

The column which header is the cell.

Returns

CellPrintElement

The CellPrintElement to be printed.

CreateImageCellPrintElement(GridViewCellInfo)

Creates an image print cell element.

Declaration

cs-api-definition
protected virtual CellPrintElement CreateImageCellPrintElement(GridViewCellInfo cellInfo)

Parameters

cellInfo

GridViewCellInfo

The actual grid cell that holds the image info.

Returns

CellPrintElement

The CellPrintElement to be printed.

CreateSparklineCellPrintElement(GridViewCellInfo, RectangleF)

Declaration

cs-api-definition
protected virtual CellPrintElement CreateSparklineCellPrintElement(GridViewCellInfo cellInfo, RectangleF cellBounds)

Parameters

cellInfo

GridViewCellInfo

cellBounds

RectangleF

Returns

CellPrintElement

CreateSummaryCellPrintElement(GridViewCellInfo)

Creates a summary print cell element.

Declaration

cs-api-definition
protected virtual CellPrintElement CreateSummaryCellPrintElement(GridViewCellInfo cellInfo)

Parameters

cellInfo

GridViewCellInfo

The actual grid view summary cell that will be printed.

Returns

CellPrintElement

The CellPrintElement to be printed.

DetachSparkElemnt()

Declaration

cs-api-definition
protected virtual void DetachSparkElemnt()

DrawPage(PrintGridTraverser, Rectangle, Graphics, GridPrintSettings, int)

Renders a whole page using the settings provided.

Declaration

cs-api-definition
public abstract void DrawPage(PrintGridTraverser traverser, Rectangle drawArea, Graphics graphics, GridPrintSettings settings, int pageNumber)

Parameters

traverser

PrintGridTraverser

The traverser to iterate the grid with.

drawArea

Rectangle

The size of the drawable area.

graphics

Graphics

The graphics used for the drawing.

settings

GridPrintSettings

The print settings used for the drawing.

pageNumber

int

The number of the current page.

Implements IGridPrintRenderer.DrawPage(PrintGridTraverser, Rectangle, Graphics, GridPrintSettings, int)

GetCellDesiredSize(GridCellElement)

Gets the cell's desired width

Declaration

cs-api-definition
protected virtual SizeF GetCellDesiredSize(GridCellElement cell)

Parameters

cell

GridCellElement

An instance of GridCellElement

Returns

SizeF

Returns the desired cell's with

GetDataRowHeight(GridViewRowInfo, TableViewRowLayoutBase)

Gets the height of a given data row taking into account if the grid AutoSizeRows property is true.

Declaration

cs-api-definition
protected virtual int GetDataRowHeight(GridViewRowInfo row, TableViewRowLayoutBase rowLayout)

Parameters

row

GridViewRowInfo

The row to be measured.

rowLayout

TableViewRowLayoutBase

The row layout.

Returns

int

OnChildViewPrinting(ChildViewPrintingEventArgs)

Occurs for hierarchy rows with more than one child views.

Declaration

cs-api-definition
protected virtual void OnChildViewPrinting(ChildViewPrintingEventArgs e)

Parameters

e

ChildViewPrintingEventArgs

The ChildViewPrintingEventArgs

OnPrintCellFormatting(PrintCellFormattingEventArgs)

Occurs for each cell that is being printed.

Declaration

cs-api-definition
protected virtual void OnPrintCellFormatting(PrintCellFormattingEventArgs e)

Parameters

e

PrintCellFormattingEventArgs

The PrintCellFormattingEventArgs

OnPrintCellPaint(PrintCellPaintEventArgs)

Occurs after a cell is being formatted and painted.

Declaration

cs-api-definition
protected virtual void OnPrintCellPaint(PrintCellPaintEventArgs e)

Parameters

e

PrintCellPaintEventArgs

The PrintCellPaintEventArgs

Reset()

Resets the print style for subsequent use.

Declaration

cs-api-definition
public abstract void Reset()

Implements IGridPrintRenderer.Reset()

Events

ChildViewPrinting

Fires for hierarchy rows with more than one child views.

Declaration

cs-api-definition
public event ChildViewPrintingEventHandler ChildViewPrinting

Event Value

ChildViewPrintingEventHandler

PrintCellFormatting

Fires for each cell that is being printed.

Declaration

cs-api-definition
public event PrintCellFormattingEventHandler PrintCellFormatting

Event Value

PrintCellFormattingEventHandler

PrintCellPaint

Fires after a cell is being formatted and painted.

Declaration

cs-api-definition
public event PrintCellPaintEventHandler PrintCellPaint

Event Value

PrintCellPaintEventHandler