wpf-devexpress-dot-xpf-dot-gantt-dot-ganttview-b495da0f.md
Gets or sets an object that applies the task content template according to custom logic in the printed GanttControl. This is a dependency property.
Namespace : DevExpress.Xpf.Gantt
Assembly : DevExpress.Xpf.Gantt.v25.2.dll
NuGet Package : DevExpress.Wpf.Gantt
public DataTemplateSelector PrintTaskContentTemplateSelector { get; set; }
Public Property PrintTaskContentTemplateSelector As DataTemplateSelector
| Type | Description |
|---|---|
| DataTemplateSelector |
A DataTemplateSelector descendant that applies the task content template according to custom logic.
|
The PrintTaskContentTemplate property specifies a template that defines the appearance of task content.
If you use more than one task content template, you can implement a selector to apply the template according to custom logic. Follow the steps below:
PrintTaskContentTemplateSelector property.If View contains both PrintTaskContentTemplate and PrintTaskContentTemplateSelector , the GanttControl renders the template assigned to the PrintTaskContentTemplate property.
Refer to the following topic for more information on how to customize the printed document: Print and Export.
See Also