New to Telerik UI for WinForms? Start a free 30-day trial

Provides the drawing surface, bounds, and associated data after a print element has been rendered.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class GanttViewPrintElementPaintEventArgs : EventArgs

Inheritance: objectEventArgsGanttViewPrintElementPaintEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes event data for a rendered element and its associated data and text-view column.

C#
public GanttViewPrintElementPaintEventArgs(Graphics g, RectangleF rect, GanttViewPrintElementContext printContext, GanttViewPrintElement printElement, object dataContext, string columnName)
Parameters:gGraphics

The graphics surface used to render the current print output.

rectRectangleF

The element's bounds on that graphics surface.

printContextGanttViewPrintElementContext

The kind of printed element.

printElementGanttViewPrintElement

The element that has just been rendered.

dataContextobject

The object associated with the printed element, or null if there is none.

columnNamestring

The name of the text-view column, or null when the element is not a column cell.

Initializes event data for an element without an associated text-view column.

C#
public GanttViewPrintElementPaintEventArgs(Graphics g, RectangleF rect, GanttViewPrintElementContext printContext, GanttViewPrintElement printElement, object dataContext)
Parameters:gGraphics

The graphics surface used to render the current print output.

rectRectangleF

The element's bounds on that graphics surface.

printContextGanttViewPrintElementContext

The kind of printed element.

printElementGanttViewPrintElement

The element that has just been rendered.

dataContextobject

The object associated with the printed element, or null if there is none.

Properties

Gets the name of the associated text-view column, or null when the element is not a column cell.

C#
public string ColumnName { get; }

Gets the data object associated with the printed element, such as a task item or text-view column.

C#
public object DataContext { get; }

Gets the graphics surface used to render the element. Use it to draw additional content over the rendered element.

C#
public Graphics Graphics { get; }

Gets the type of element that was rendered.

C#
public GanttViewPrintElementContext PrintContext { get; }

Gets the element whose rendering has just completed.

C#
public GanttViewPrintElement PrintElement { get; }

Gets the bounds used to render the element on the print graphics surface.

C#
public RectangleF Rectangle { get; }