Aspose.Tasks for C++
Aspose::Tasks::FilterCriteria Class Reference

Defines the criteria that tasks or resources must meet to be displayed in MSP view. More...

#include <FilterCriteria.h>

Inherits System::Object.

Public Member Functions

FilterOperation get_Operation () const
 Gets the criterion established with FieldName, Test, and Value relates to other criteria in the filter. More...
 
void set_Operation (FilterOperation value)
 Sets the criterion established with FieldName, Test, and Value relates to other criteria in the filter. More...
 
Aspose::Tasks::Field get_Field () const
 Gets a Field to change. More...
 
void set_Field (Aspose::Tasks::Field value)
 Sets a Field to change. More...
 
FilterComparisonType get_Test () const
 Gets the type of comparison made between FieldName and Value that acts as selection criteria for the filter. FilterComparisonType More...
 
void set_Test (FilterComparisonType value)
 Sets the type of comparison made between FieldName and Value that acts as selection criteria for the filter. FilterComparisonType More...
 
System::ArrayPtr< System::SharedPtr< System::Object > > get_Values () const
 Gets the object values to compare with the value of the field specified with FieldName. More...
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< FilterCriteria > > > get_CriteriaRows () const
 Gets the list of child 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. More...
 
bool IsFieldValue ()
 Gets whether the right-hand value of FilterCriteria is a field reference, not a constant value. More...
 
void SetValueField (Aspose::Tasks::Field value)
 Sets the field whose value will be compared with the value of the field specified by FieldName. More...
 
System::String ToString () const override
 Returns string representation of the instance of the FilterCriteria class. More...
 

Detailed Description

Defines the criteria that tasks or resources must meet to be displayed in MSP view.

Member Function Documentation

◆ get_CriteriaRows()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<FilterCriteria> > > Aspose::Tasks::FilterCriteria::get_CriteriaRows ( ) const

Gets the list of child 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.

◆ get_Field()

Aspose::Tasks::Field Aspose::Tasks::FilterCriteria::get_Field ( ) const

Gets a Field to change.

◆ get_Operation()

FilterOperation Aspose::Tasks::FilterCriteria::get_Operation ( ) const

Gets the criterion established with FieldName, Test, and Value relates to other criteria in the filter.

◆ get_Test()

FilterComparisonType Aspose::Tasks::FilterCriteria::get_Test ( ) const

Gets the type of comparison made between FieldName and Value that acts as selection criteria for the filter. FilterComparisonType

◆ get_Values()

System::ArrayPtr<System::SharedPtr<System::Object> > Aspose::Tasks::FilterCriteria::get_Values ( ) const

Gets the object values to compare with the value of the field specified with FieldName.

◆ IsFieldValue()

bool Aspose::Tasks::FilterCriteria::IsFieldValue ( )

Gets whether the right-hand value of FilterCriteria is a field reference, not a constant value.

◆ set_Field()

void Aspose::Tasks::FilterCriteria::set_Field ( Aspose::Tasks::Field  value)

Sets a Field to change.

◆ set_Operation()

void Aspose::Tasks::FilterCriteria::set_Operation ( FilterOperation  value)

Sets the criterion established with FieldName, Test, and Value relates to other criteria in the filter.

◆ set_Test()

void Aspose::Tasks::FilterCriteria::set_Test ( FilterComparisonType  value)

Sets the type of comparison made between FieldName and Value that acts as selection criteria for the filter. FilterComparisonType

◆ SetValueField()

void Aspose::Tasks::FilterCriteria::SetValueField ( Aspose::Tasks::Field  value)

Sets the field whose value will be compared with the value of the field specified by FieldName.

Parameters
valueField which will serve as right-hand value of filter criteria.

◆ ToString()

System::String Aspose::Tasks::FilterCriteria::ToString ( ) const
override

Returns string representation of the instance of the FilterCriteria class.

Returns
string representation of this object.