New to Telerik UI for WinFormsStart a free 30-day trial

Represents the print renderer for the HtmlViewDefinition.

Definition

Constructors

Initializes a new instance of the HtmlViewDefinitionPrintRenderer class.

C#
public HtmlViewDefinitionPrintRenderer(RadGridView grid)
Parameters:gridRadGridView

The grid.

Properties

Gets the view definition type this print style is for.

C#
public override Type ViewDefinitionType { get; }
Property Value:

The type of the view definition.

Overrides: BaseGridPrintRenderer.ViewDefinitionType

Methods

Renders a whole page using the settings provided.

C#
public override void DrawPage(PrintGridTraverser traverser, Rectangle drawArea, Graphics graphics, GridPrintSettings settings, int pageNumber)
Parameters:traverserPrintGridTraverser

The traverser to iterate the grid with.

drawAreaRectangle

The size of the drawable area.

graphicsGraphics

The graphics used for the drawing.

settingsGridPrintSettings

The print settings used for the drawing.

pageNumberint

The number of the current page.

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

Gets the row size using the provided row layout.

C#
protected virtual Size GetRowSize(GridViewRowInfo row, HtmlViewRowLayout rowLayout)
Parameters:rowGridViewRowInfo

The row to measure.

rowLayoutHtmlViewRowLayout

The row layout to be used for the measure.

Returns:

Size

The size of the row.

Prints a single row of the RadGridView.

C#
protected virtual void PrintRow(GridViewRowInfo row, HtmlViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics)
Parameters:rowGridViewRowInfo

The actual row that is being printed.

rowLayoutHtmlViewRowLayout

The ColumnGroupRowLayout used for layouting the cells.

settingsGridPrintSettings

The print settings to print the row with.

currentXint

The X coordinate that the row should start to paint.

currentYint

The Y coordinate that the row should start to paint.

graphicsGraphics

The Graphics used for the drawing.

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

C#
protected virtual void PrintRowWideCell(GridViewRowInfo row, HtmlViewRowLayout rowLayout, GridPrintSettings settings, int currentX, int currentY, Graphics graphics)
Parameters:rowGridViewRowInfo

The actual row that is being printed.

rowLayoutHtmlViewRowLayout

The ColumnGroupRowLayout used for lay outing the cells.

settingsGridPrintSettings

The print settings to print the row with.

currentXint

The X coordinate that the row should start to paint.

currentYint

The Y coordinate that the row should start to paint.

graphicsGraphics

The Graphics used for the drawing.

Resets the print style for subsequent use.

C#
public override void Reset()

Overrides: BaseGridPrintRenderer.Reset()