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

Provides the print element and its associated data to the PrintElementFormatting event.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class GanttViewPrintElementFormattingEventArgs : EventArgs

Inheritance: objectEventArgsGanttViewPrintElementFormattingEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes event data for a printed element and its associated data and column.

C#
public GanttViewPrintElementFormattingEventArgs(GanttViewPrintElementContext context, GanttViewPrintElement printElement, object dataContext, string columnName)
Parameters:contextGanttViewPrintElementContext

The kind of printed element.

printElementGanttViewPrintElement

The element whose appearance can be changed before it is 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 with an associated data object but no text-view column.

C#
public GanttViewPrintElementFormattingEventArgs(GanttViewPrintElementContext context, GanttViewPrintElement printElement, object dataContext)
Parameters:contextGanttViewPrintElementContext

The kind of printed element.

printElementGanttViewPrintElement

The element whose appearance can be changed before it is rendered.

dataContextobject

The 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.

C#
public GanttViewPrintElementFormattingEventArgs(GanttViewPrintElementContext context, GanttViewPrintElement printElement)
Parameters:contextGanttViewPrintElementContext

The kind of printed element.

printElementGanttViewPrintElement

The 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.

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 type of element being rendered.

C#
public GanttViewPrintElementContext PrintContext { get; }

Gets the element whose appearance can be customized before it is rendered.

C#
public GanttViewPrintElement PrintElement { get; }