Skip to main content
A newer version of this page is available. .
All docs
V20.2

GanttView.PrintTaskContentTemplateSelector Property

Gets or sets an object that chooses a print template for task content based on custom logic. This is a dependency property.

Namespace: DevExpress.Xpf.Gantt

Assembly: DevExpress.Xpf.Gantt.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Gantt, DevExpress.Wpf.Gantt

Declaration

public DataTemplateSelector PrintTaskContentTemplateSelector { get; set; }

Property Value

Type Description
DataTemplateSelector

A DataTemplateSelector descendant that chooses a template based on custom logic.

Remarks

The PrintTaskContentTemplate property specifies a print template that defines the presentation of task content. If you have more than one print task template, you can implement custom logic to choose the required template:

  1. Derive from the DataTemplateSelector class.
  2. Implement the SelectTemplate method that returns a template that meets the required condition.
  3. Assign it to the PrintTaskContentTemplateSelector property.

If you specify both the TaskContentTemplate and PrintTaskContentTemplateSelector, the GanttControl uses the template the template selector returns to print task contents.

If the template selector returns null, the GanttControl uses the template specified by the TaskContentTemplate property.

Refer to the Print and Export topic for more information on how to customize the printed document.

See Also