Provides the print element and its associated data to the PrintElementFormatting event.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class GanttViewPrintElementFormattingEventArgs : EventArgs
Inheritance: objectEventArgsGanttViewPrintElementFormattingEventArgs
Inherited Members
Constructors
Initializes event data for a printed element and its associated data and column.
public GanttViewPrintElementFormattingEventArgs(GanttViewPrintElementContext context, GanttViewPrintElement printElement, object dataContext, string columnName)
The kind of printed element.
printElementGanttViewPrintElementThe element whose appearance can be changed before it is 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 with an associated data object but no text-view column.
public GanttViewPrintElementFormattingEventArgs(GanttViewPrintElementContext context, GanttViewPrintElement printElement, object dataContext)
The kind of printed element.
printElementGanttViewPrintElementThe element whose appearance can be changed before it is rendered.
dataContextobjectThe object associated with the printed element, or null if there is none.
Initializes event data for an element without an associated data object or text-view column.
public GanttViewPrintElementFormattingEventArgs(GanttViewPrintElementContext context, GanttViewPrintElement printElement)
The kind of printed element.
printElementGanttViewPrintElementThe element whose appearance can be changed before it is rendered.
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 type of element being rendered.
public GanttViewPrintElementContext PrintContext { get; }
Gets the element whose appearance can be customized before it is rendered.
public GanttViewPrintElement PrintElement { get; }