Class
DateTimeFilterDescriptor

Represents a PropertyFilterDescriptor that is associated with the DateTime data type.

Definition

Constructors

DateTimeFilterDescriptor()

Declaration

cs-api-definition
public DateTimeFilterDescriptor()

Properties

Operator

Gets or sets the NumericalOperator value that defines the boolean logic behind the left and right operand comparison.

Declaration

cs-api-definition
public NumericalOperator Operator { get; set; }

Property Value

NumericalOperator

Part

Gets or sets the DateTimePart value that determines which parts of the underlying DateTime structures participate in the filtering comparison. Defaults to Ticks

Declaration

cs-api-definition
public DateTimePart Part { get; set; }

Property Value

DateTimePart

Methods

OnPropertyChanged(string)

Provides an entry point for inheritors to provide additional logic over the PropertyChanged routine.

Declaration

cs-api-definition
protected override void OnPropertyChanged(string propertyName = null)

Parameters

propertyName

string

Overrides PropertyFilterDescriptor.OnPropertyChanged(string)

PassesFilterOverride(object)

Encapsulates the core filter logic exposed by the descriptor. Allows inheritors to provide their own custom filtering logic.

Declaration

cs-api-definition
protected override bool PassesFilterOverride(object itemValue)

Parameters

itemValue

object

The property value, as defined by the property.

Returns

bool

True if the filter is passed and the associated item should be displayed, false otherwise.

Overrides PropertyFilterDescriptor.PassesFilterOverride(object)