GraphicalIndicatorCriteria.Value2
Contents
[
Hide
]GraphicalIndicatorCriteria.Value2 property
Gets the second value used to test extended attribute’s value in case of ‘IsWithin’ and ‘IsNotWithin’ comparison types.
public GraphicalIndicatorCriteriaValue Value2 { get; }
Examples
Shows how to retrieve graphical indicators info.
Project project = new Project(DataDir + "graphical_indicators.mpp");
foreach (var ea in project.ExtendedAttributes)
{
if (ea.GraphicalIndicator == null)
{
continue;
}
Console.WriteLine("GI for field '{0}':", ea.FieldName);
foreach (var criterion in ea.GraphicalIndicator.Criteria)
{
Console.WriteLine("Row type: {0}", criterion.RowType);
Console.WriteLine("Image index: {0}", criterion.ImageIndex);
Console.Write(criterion.Test);
if (criterion.Value1 != null)
{
Console.Write(" ");
Console.Write(criterion.Value1.RawValue);
}
if (criterion.Value2 != null)
{
Console.Write(" ");
Console.WriteLine(criterion.Value2.RawValue);
}
Console.WriteLine();
}
}
See Also
- class GraphicalIndicatorCriteriaValue
- class GraphicalIndicatorCriteria
- namespace Aspose.Tasks
- assembly Aspose.Tasks