Class Filter

Class Filter

Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)

Represents a filter in Project.

public sealed class Filter : IComparable<filter>, IEquatable<filter>

Inheritance

objectFilter

Implements

IComparable<filter>, IEquatable<filter>

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

Filter()

public Filter()

Properties

Criteria

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

public FilterCriteria Criteria { get; set; }

Property Value

FilterCriteria

FilterType

Gets the type of the filter.

public ItemType FilterType { get; set; }

Property Value

ItemType

Index

Gets the index of a Aspose.Tasks.Filter object in the Filters containing object.

public int Index { get; }

Property Value

int

Name

Gets or sets the name of a Filter object.

public string Name { get; set; }

Property Value

string

ShowInMenu

Gets or sets a value indicating whether project shows the filter name in the Filter drop-down list on the View tab of the Ribbon.

public bool ShowInMenu { get; set; }

Property Value

bool

ShowRelatedSummaryRows

Gets or sets a value indicating whether related summary rows are displayed for the filter.

public bool ShowRelatedSummaryRows { get; set; }

Property Value

bool

Uid

Gets the unique identifier of a filter.

public int Uid { get; }

Property Value

int

Methods

CompareTo(Filter)

Compares this instance to the specified instance of the Aspose.Tasks.Filter class and returns an indication of their relative order.

public int CompareTo(Filter other)

Parameters

other Filter

the specified instance of the Aspose.Tasks.Filter class to compare to this object.

Returns

int

an indication of their relative order.

Equals(Filter)

Returns a value indicating whether this instance is equal to the specified AssignmentBaseline object.

public bool Equals(Filter other)

Parameters

other Filter

the specified AssignmentBaseline object to compare with this instance.

Returns

bool

returns true if this instance is equal to the specified AssignmentBaseline object; otherwise, false.

Equals(object)

Returns a value indicating whether this instance is equal to the specified AssignmentBaseline object.

public override bool Equals(object obj)

Parameters

obj object

the specified AssignmentBaseline object to compare with this instance.

Returns

bool

returns true if this instance is equal to the specified AssignmentBaseline object; otherwise, false.

GetHashCode()

Returns a hash code value for the filter.

public override int GetHashCode()

Returns

int

returns a hash code value for this object.

Operators

operator ==(Filter, Filter)

Returns a value indicating whether this instance is equal to a specified object.

public static bool operator ==(Filter a, Filter b)

Parameters

a Filter

The first filter.

b Filter

The second filter.

Returns

bool

a value indicating whether this instance is equal to a specified object

operator &gt;(Filter, Filter)

Returns a value indicating whether this instance is greater than a specified object.

public static bool operator &gt;(Filter a, Filter b)

Parameters

a Filter

The first filter.

b Filter

The second filter.

Returns

bool

a value indicating whether this instance is greater than a specified object

operator &gt;=(Filter, Filter)

Returns a value indicating whether this instance is greater than or equal to a specified object.

public static bool operator &gt;=(Filter a, Filter b)

Parameters

a Filter

The first filter.

b Filter

The second filter.

Returns

bool

a value indicating whether this instance is greater than or equal to a specified object

operator !=(Filter, Filter)

Returns a value indicating whether this instance is not equal to a specified object.

public static bool operator !=(Filter a, Filter b)

Parameters

a Filter

The first filter.

b Filter

The second filter.

Returns

bool

a value indicating whether this instance is not equal to a specified object

operator <(Filter, Filter)

Returns a value indicating whether this instance is less than a specified object.

public static bool operator &lt;(Filter a, Filter b)

Parameters

a Filter

The first filter.

b Filter

The second filter.

Returns

bool

a value indicating whether this instance is less than a specified object

operator <=(Filter, Filter)

Returns a value indicating whether this instance is less than or equal to a specified object.

public static bool operator &lt;=(Filter a, Filter b)

Parameters

a Filter

The first filter.

b Filter

The second filter.

Returns

bool

a value indicating whether this instance is less than or equal to a specified object </filter></filter>