GanttBarStyle.ShowForCategories
GanttBarStyle.ShowForCategories property
Gets or sets task categories for which the style is applied. Is applicable for parent (or common) styles of bars in Gantt chart (see BarStyles
).
public IList<GanttBarShowFor> ShowForCategories { get; set; }
Examples
Shows how to use ShowFor categories.
var project = new Project(DataDir + "Project2.mpp");
var view = (GanttChartView)project.DefaultView;
var barStyle = this.GetCustomBarStyle();
barStyle.ShowForTaskUid = null;
var showForCategories = new[]
{
GanttBarShowFor.Active,
GanttBarShowFor.NotSummary,
GanttBarShowFor.Milestone,
GanttBarShowFor.Finished
};
barStyle.ShowForCategories = new List<GanttBarShowFor>(showForCategories);
barStyle.Name = "My common style";
view.BarStyles.Add(barStyle);
// work with project...
See Also
- enum GanttBarShowFor
- class GanttBarStyle
- namespace Aspose.Tasks.Visualization
- assembly Aspose.Tasks