New to Telerik Document ProcessingStart a free 30-day trial

Defines a date/time grouping criterion for ValuesCollectionFilter, matching values by year, month, day, hour, minute, or second components.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model.Filtering

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

C#
public class DateGroupItem

Inheritance: objectDateGroupItem

Constructors

Initializes a new instance of the DateGroupItem class.

C#
public DateGroupItem(int year, int month, int day, int hour, int minute, int seconds)
Parameters:yearint

The year.

monthint

The month.

dayint

The day.

hourint

The hour.

minuteint

The minute.

secondsint

The seconds.

Initializes a new instance of the DateGroupItem class.

C#
public DateGroupItem(int year, int month, int day, int hour, int minute)
Parameters:yearint

The year.

monthint

The month.

dayint

The day.

hourint

The hour.

minuteint

The minute.

Initializes a new instance of the DateGroupItem class.

C#
public DateGroupItem(int year, int month, int day, int hour)
Parameters:yearint

The year.

monthint

The month.

dayint

The day.

hourint

The hour.

Initializes a new instance of the DateGroupItem class.

C#
public DateGroupItem(int year, int month, int day)
Parameters:yearint

The year.

monthint

The month.

dayint

The day.

Initializes a new instance of the DateGroupItem class.

C#
public DateGroupItem(int year, int month)
Parameters:yearint

The year.

monthint

The month.

Initializes a new instance of the DateGroupItem class.

C#
public DateGroupItem(int year)
Parameters:yearint

The year.

Methods

Determines whether the specified date matches this item's criteria. Compares year, month, day, hour, minute, and/or second components based on the grouping type.

C#
public bool DateSatisfiesItem(DateTime date)
Parameters:dateDateTime

The date.

Returns:

bool

A value indicating whether the specified date satisfies the item.

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

true if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

Properties

Gets the level of date/time granularity used for matching (year only, month, day, hour, minute, or second).

C#
public DateTimeGroupingType DateTimeGroupingType { get; }
Property Value:

The grouping type of the item.

Gets the day component (1-31) used for matching when grouping type is Day or more granular.

C#
public int Day { get; }
Property Value:

The day.

Gets the hour component (0-23) used for matching when grouping type is Hour or more granular.

C#
public int Hour { get; }
Property Value:

The hour.

Gets the minute component (0-59) used for matching when grouping type is Minute or Second.

C#
public int Minute { get; }
Property Value:

The minute.

Gets the month component (1-12) used for matching when grouping type is Month or more granular.

C#
public int Month { get; }
Property Value:

The month.

Gets the second component (0-59) used for matching when grouping type is Second.

C#
public int Second { get; }
Property Value:

The second.

Gets the year component used for matching date values.

C#
public int Year { get; }
Property Value:

The year.