Class
TableViewDefinitionPrintRenderer

Represents the print renderer for the table view definition.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class TableViewDefinitionPrintRenderer : BaseGridPrintRenderer, IGridPrintRenderer

Inheritance: objectBaseGridPrintRendererTableViewDefinitionPrintRenderer

Implements: IGridPrintRenderer

Inherited Members BaseGridPrintRenderer.CreateHeaderCellPrintElement(GridViewColumn)BaseGridPrintRenderer.CreateGroupCellPrintElement(GridViewGroupRowInfo)BaseGridPrintRenderer.CreateDataCellPrintElement(GridViewCellInfo, RectangleF)BaseGridPrintRenderer.CreateDataCellPrintElement(GridViewCellInfo)BaseGridPrintRenderer.CreateSummaryCellPrintElement(GridViewCellInfo)BaseGridPrintRenderer.CreateImageCellPrintElement(GridViewCellInfo)BaseGridPrintRenderer.CreateSparklineCellPrintElement(GridViewCellInfo, RectangleF)BaseGridPrintRenderer.GetDataRowHeight(GridViewRowInfo, TableViewRowLayoutBase)BaseGridPrintRenderer.GetCellDesiredSize(GridCellElement)BaseGridPrintRenderer.DetachSparkElemnt()BaseGridPrintRenderer.OnPrintCellPaint(PrintCellPaintEventArgs)BaseGridPrintRenderer.OnPrintCellFormatting(PrintCellFormattingEventArgs)BaseGridPrintRenderer.OnChildViewPrinting(ChildViewPrintingEventArgs)BaseGridPrintRenderer.GridViewBaseGridPrintRenderer.PrintCellPaintBaseGridPrintRenderer.PrintCellFormattingBaseGridPrintRenderer.ChildViewPrinting

Constructors

TableViewDefinitionPrintRenderer(RadGridView)

Initializes a new instance of the TableViewDefinitionPrintRenderer class.

Declaration

cs-api-definition
public TableViewDefinitionPrintRenderer(RadGridView grid)

Parameters

grid

RadGridView

The grid.

Properties

CurrentPrintPage

Gets or sets the current print page. Used for Multi-page printing.

Declaration

cs-api-definition
public int CurrentPrintPage { get; set; }

Property Value

int

The current print page.

PrintPages

Gets or sets the print pages. Collection of PrintPageColumnsCollection, where each collection represents a separate page.

Declaration

cs-api-definition
public PrintPagesCollection PrintPages { get; set; }

Property Value

PrintPagesCollection

The print pages.

ViewDefinitionType

Gets the view definition type this print style is for.

Declaration

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

Property Value

Type

The type of the view definition.

Overrides BaseGridPrintRenderer.ViewDefinitionType

Methods

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

Renders a whole page using the settings provided.

Declaration

cs-api-definition
public override 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.

Overrides BaseGridPrintRenderer.DrawPage(PrintGridTraverser, Rectangle, Graphics, GridPrintSettings, int)

GetRowSize(GridViewRowInfo, TableViewRowLayout)

Gets the row size using the provided row layout.

Declaration

cs-api-definition
protected virtual Size GetRowSize(GridViewRowInfo row, TableViewRowLayout rowLayout)

Parameters

row

GridViewRowInfo

The row to measure.

rowLayout

TableViewRowLayout

The row layout to be used for the measure.

Returns

Size

The size of the row.

PrintRow(GridViewRowInfo, TableViewRowLayout, GridPrintSettings, int, int, Graphics)

Prints a single row of the RadGridView.

Declaration

cs-api-definition
protected virtual void PrintRow(GridViewRowInfo row, TableViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics)

Parameters

row

GridViewRowInfo

The actual row that is being printed.

rowLayout

TableViewRowLayout

The ColumnGroupRowLayout used for layouting the cells.

settings

GridPrintSettings

The print settings to print the row with.

currentX

int

The X coordinate that the row should start to paint.

currentY

int

The Y coordinate that the row should start to paint.

graphics

Graphics

The Graphics used for the drawing.

PrintRow(GridViewRowInfo, TableViewRowLayout, GridPrintSettings, int, int, Graphics, Rectangle)

Prints a single row of the RadGridView.

Declaration

cs-api-definition
protected virtual void PrintRow(GridViewRowInfo row, TableViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics, Rectangle drawArea)

Parameters

row

GridViewRowInfo

The actual row that is being printed.

rowLayout

TableViewRowLayout

The ColumnGroupRowLayout used for layouting the cells.

settings

GridPrintSettings

The print settings to print the row with.

currentX

int

The X coordinate that the row should start to paint.

currentY

int

The Y coordinate that the row should start to paint.

graphics

Graphics

The Graphics used for the drawing.

drawArea

Rectangle

The available draw area to print the row in.

PrintRowWideCell(GridViewRowInfo, TableViewRowLayout, GridPrintSettings, int, int, Graphics)

Prints a single cell that is wide as the whole RadGridView.

Declaration

cs-api-definition
protected virtual void PrintRowWideCell(GridViewRowInfo row, TableViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics)

Parameters

row

GridViewRowInfo

The actual row that is being printed.

rowLayout

TableViewRowLayout

The ColumnGroupRowLayout used for layouting the cells.

settings

GridPrintSettings

The print settings to print the row with.

currentX

int

The X coordinate that the row should start to paint.

currentY

int

The Y coordinate that the row should start to paint.

graphics

Graphics

The Graphics used for the drawing.

Reset()

Resets the print style for subsequent use.

Declaration

cs-api-definition
public override void Reset()

Overrides BaseGridPrintRenderer.Reset()

RestoreColumnsState(ColumnsState)

Restores the state of the columns.

Declaration

cs-api-definition
protected virtual void RestoreColumnsState(ColumnsState state)

Parameters

state

ColumnsState

The state.

SaveColumnsState(GridViewTemplate)

Saves the state of the columns.

Declaration

cs-api-definition
protected virtual ColumnsState SaveColumnsState(GridViewTemplate template)

Parameters

template

GridViewTemplate

The template.

Returns

ColumnsState