Class FilterCriteria
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
Defines the criteria that tasks or resources must meet to be displayed in MSP view.
public class FilterCriteria
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
FilterCriteria()
public FilterCriteria()
Properties
CriteriaRows
Gets the list of child Aspose.Tasks.FilterCriteria rows. If the filter contains more than one criterion row then the effect of an And operator is that the criteria for both rows must be met for the task or resource to be displayed as a result of this filter. The effect of an Or operator is that the criteria for one or the other row must be met.
public List<filtercriteria> CriteriaRows { get; }
Property Value
List<FilterCriteria>
Field
Gets or sets a Aspose.Tasks.FilterCriteria.Field to change.
public Field Field { get; set; }
Property Value
Operation
Gets or sets the criterion established with FieldName, Test, and Value relates to other criteria in the filter.
public FilterOperation Operation { get; set; }
Property Value
Test
Gets or sets the type of comparison made between FieldName and Value that acts as selection criteria for the filter. Aspose.Tasks.FilterComparisonType
public FilterComparisonType Test { get; set; }
Property Value
Values
Gets the object values to compare with the value of the field specified with FieldName.
public object[] Values { get; }
Property Value
object[]
Methods
IsFieldValue()
Gets whether the right-hand value of FilterCriteria is a field reference, not a constant value.
public bool IsFieldValue()
Returns
SetValueField(Field)
Sets the field whose value will be compared with the value of the field specified by FieldName.
public void SetValueField(Field value)
Parameters
value
Field
Field which will serve as right-hand value of filter criteria.
ToString()
Returns string representation of the instance of the Aspose.Tasks.FilterCriteria class.
public override string ToString()
Returns
string representation of this object.