Class
HtmlViewDefinitionPrintRenderer

Represents the print renderer for the HtmlViewDefinition.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

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

Inheritance: objectBaseGridPrintRendererHtmlViewDefinitionPrintRenderer

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

HtmlViewDefinitionPrintRenderer(RadGridView)

Initializes a new instance of the HtmlViewDefinitionPrintRenderer class.

Declaration

cs-api-definition
public HtmlViewDefinitionPrintRenderer(RadGridView grid)

Parameters

grid

RadGridView

The grid.

Properties

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, HtmlViewRowLayout)

Gets the row size using the provided row layout.

Declaration

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

Parameters

row

GridViewRowInfo

The row to measure.

rowLayout

HtmlViewRowLayout

The row layout to be used for the measure.

Returns

Size

The size of the row.

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

Prints a single row of the RadGridView.

Declaration

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

Parameters

row

GridViewRowInfo

The actual row that is being printed.

rowLayout

HtmlViewRowLayout

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.

PrintRowWideCell(GridViewRowInfo, HtmlViewRowLayout, 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, HtmlViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics)

Parameters

row

GridViewRowInfo

The actual row that is being printed.

rowLayout

HtmlViewRowLayout

The ColumnGroupRowLayout used for lay outing 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()