Enum GanttBarShowFor

GanttBarShowFor enumeration

Represents categories of tasks used when customizing Bar Styles of Gantt chart.

public enum GanttBarShowFor

Values

NameValueDescription
Normal0Normal category.
Milestone1Milestone category.
Summary2Summary category.
Critical3Critical category.
Noncritical4Noncritical category.
Marked5Marked category.
Finished6Finished category.
InProgress7InProgress category.
NotFinished8Not Finished category.
NotStarted9Not Started category.
StartedLate10Started Late.
FinishedLate11Finished Late category.
StartedEarly12Started Early category.
FinishedEarly13Finished Early category.
StartedOnTime14Started On Time category.
FinishedOnTime15Finished On Time category.
Flag116Flag1 category.
Flag217Flag2 category.
Flag318Flag3 category.
Flag419Flag4 category.
Flag520Flag5 category.
Flag621Flag6 category.
Flag722Flag7 category.
Flag823Flag8 category.
Flag924Flag9 category.
Flag1025Flag10 category.
RolledUp26Rolled Up category.
ProjectSummary27Project Summary category.
Split28Split category.
ExternalTasks29External Tasks category.
Flag1130Flag11 category.
Flag1231Flag12 category.
Flag1332Flag13 category.
Flag1433Flag14 category.
Flag1534Flag15 category.
Flag1635Flag16 category.
Flag1736Flag17 category.
Flag1837Flag18 category.
Flag1938Flag19 category.
Flag2039Flag20 category.
GroupBySummary40Group By Summary category.
Deliverable41Deliverable category.
Dependency42Dependency category.
Active43Active category.
ManuallyScheduled44Manually Scheduled category.
Warning45Warning category.
PlaceholderStart46Placeholder (Start) category.
PlaceholderFinish47Placeholder (Finish) category.
PlaceholderDuration48Placeholder (Duration) category.
Placeholder49Placeholder category.
Late50Late category.
NotNormal64Not Normal
NotMilestone65Not Milestone category.
NotSummary66Not Summary category.
NotCritical67Not Critical category.
NotMarked69Not Marked = 69 category.
NotInProgress71Not In Progress = 71 category.
NotStartedLate74Not Started Late = 74 category.
NotFinishedLate75Not Finished Late category.
NotStartedEarly76Not Started Early category.
NotFinishedEarly77Not Finished Early category.
NotStartedOnTime78Not Started On Time category.
NotFinishedOnTime79Not Finished On Time category.
NotFlag180Not Flag1 category.
NotFlag281Not Flag2 category.
NotFlag382Not Flag3 category.
NotFlag483Not Flag4 category.
NotFlag584Not Flag5 category.
NotFlag685Not Flag6 category.
NotFlag786Not Flag7 category.
NotFlag887Not Flag8 category.
NotFlag988Not Flag9 category.
NotFlag1089Not Flag10 category.
NotRolledUp90Not Rolled Up category.
NotProjectSummary91Not Project Summary category.
NotSplit92Not Split category.
NotExternalTasks93Not External Tasks category.
NotFlag1194Not Flag11 category.
NotFlag1295Not Flag12 category.
NotFlag1396Not Flag13 category.
NotFlag1497Not Flag14 category.
NotFlag1598Not Flag15 category.
NotFlag1699Not Flag16 category.
NotFlag17100Not Flag17 category.
NotFlag18101Not Flag18 category.
NotFlag19102Not Flag19 category.
NotFlag20103Not Flag20 category.
NotGroupBySummary104Not Group By Summary category.
NotDeliverable105Not Deliverable category.
NotDependency106Not Dependency category.
NotActive107Not Active category.
NotManuallyScheduled108Not Manually Scheduled category.
NotWarning109Not Warning category.
NotPlaceholderStart110Not Placeholder (Start) category.
NotPlaceholderFinish111Not Placeholder (Finish) category.
NotPlaceholderDuration112Not Placeholder (Duration) category.
NotPlaceholder113Not Placeholder category.
NotLate114Not Late category.

Remarks

See ‘Bar Styles’ dialog of Gantt chart, ‘Show For’ column.

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