All docs
V20.2
20.2 (EAP/Beta)
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
You are viewing help content for pre-release software. This document and the features it describes are subject to change.

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

Declaration

public DataTemplateSelector PrintTaskContentTemplateSelector { get; set; }
Public Property PrintTaskContentTemplateSelector As DataTemplateSelector

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