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:
public class GanttViewPrintElementPaintEventArgs : EventArgs
Inheritance: objectEventArgsGanttViewPrintElementPaintEventArgs
Inherited Members
Constructors
Initializes event data for a rendered element and its associated data and text-view column.
public GanttViewPrintElementPaintEventArgs(Graphics g, RectangleF rect, GanttViewPrintElementContext printContext, GanttViewPrintElement printElement, object dataContext, string columnName)
The graphics surface used to render the current print output.
rectRectangleFThe element's bounds on that graphics surface.
printContextGanttViewPrintElementContextThe kind of printed element.
printElementGanttViewPrintElementThe element that has just been rendered.
dataContextobjectThe object associated with the printed element, or null if there is none.
columnNamestringThe 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.
public GanttViewPrintElementPaintEventArgs(Graphics g, RectangleF rect, GanttViewPrintElementContext printContext, GanttViewPrintElement printElement, object dataContext)
The graphics surface used to render the current print output.
rectRectangleFThe element's bounds on that graphics surface.
printContextGanttViewPrintElementContextThe kind of printed element.
printElementGanttViewPrintElementThe element that has just been rendered.
dataContextobjectThe 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.
public string ColumnName { get; }
Gets the data object associated with the printed element, such as a task item or text-view column.
public object DataContext { get; }
Gets the graphics surface used to render the element. Use it to draw additional content over the rendered element.
public Graphics Graphics { get; }
Gets the type of element that was rendered.
public GanttViewPrintElementContext PrintContext { get; }
Gets the element whose rendering has just completed.
public GanttViewPrintElement PrintElement { get; }
Gets the bounds used to render the element on the print graphics surface.
public RectangleF Rectangle { get; }