All docs
V21.2
21.2
21.1
20.2
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.

GanttView.PrintTaskContentTemplateSelector Property

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.v21.2.dll

Declaration

public DataTemplateSelector PrintTaskContentTemplateSelector { get; set; }

Property Value

Type Description
DataTemplateSelector

A DataTemplateSelector descendant that applies the task content template according to custom logic.

Remarks

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:

  1. Derive your template selector class from DataTemplateSelector.
  2. Implement the SelectTemplate method that returns the template based on your condition.
  3. Assign your template selector to the 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