Enum GraphicalIndicatorCriteriaType
Contents
[
Hide
]GraphicalIndicatorCriteriaType enumeration
Represents placement of graphical indicator criteria.
public enum GraphicalIndicatorCriteriaType
Values
Name | Value | Description |
---|---|---|
NonSummaryRows | 0 | Represents non summary rows. |
SummaryRows | 1 | Represents summary rows. |
ProjectSummary | 2 | Represents project summary task row. |
Examples
Shows how to set up graphical indicator for an extended attribute.
Project project = new Project();
var def = ExtendedAttributeDefinition.CreateTaskDefinition(ExtendedAttributeTask.Number1, "Number field");
project.ExtendedAttributes.Add(def);
def.GraphicalIndicator = new GraphicalIndicatorsInfo();
GraphicalIndicatorCriteria criteria1 = new GraphicalIndicatorCriteria(
GraphicalIndicatorCriteriaType.SummaryRows,
FilterComparisonType.IsLessThan,
2,
new GraphicalIndicatorCriteriaValue(100m));
// 'IsWithin' criteria requires 2 values.
GraphicalIndicatorCriteria criteria2 = new GraphicalIndicatorCriteria(
GraphicalIndicatorCriteriaType.SummaryRows,
FilterComparisonType.IsWithin,
4,
new GraphicalIndicatorCriteriaValue(101),
new GraphicalIndicatorCriteriaValue(1000m));
// 'IsAnyValue' criteria doesn't require values.
GraphicalIndicatorCriteria criteria3 = new GraphicalIndicatorCriteria(
GraphicalIndicatorCriteriaType.SummaryRows,
FilterComparisonType.IsAnyValue,
4,
null);
def.GraphicalIndicator.Criteria.Add(criteria1);
def.GraphicalIndicator.Criteria.Add(criteria2);
def.GraphicalIndicator.Criteria.Add(criteria3);
def.GraphicalIndicator.ProjectSummaryInheritFromNonSummaryRows = true;
def.GraphicalIndicator.SummaryRowsInheritFromNonSummaryRows = true;
def.GraphicalIndicator.ShowDataValuesInTooltip = false;
project.Save(OutDir + "CreateGraphicalIndicators_out.mpp", SaveFileFormat.Mpp);
See Also
- namespace Aspose.Tasks
- assembly Aspose.Tasks