Class
DateGroupItem

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:

cs-api-definition
public class DateGroupItem

Inheritance: objectDateGroupItem

Constructors

DateGroupItem(int)

Initializes a new instance of the DateGroupItem class.

Declaration

cs-api-definition
public DateGroupItem(int year)

Parameters

year

int

The year.

DateGroupItem(int, int)

Initializes a new instance of the DateGroupItem class.

Declaration

cs-api-definition
public DateGroupItem(int year, int month)

Parameters

year

int

The year.

month

int

The month.

DateGroupItem(int, int, int)

Initializes a new instance of the DateGroupItem class.

Declaration

cs-api-definition
public DateGroupItem(int year, int month, int day)

Parameters

year

int

The year.

month

int

The month.

day

int

The day.

DateGroupItem(int, int, int, int)

Initializes a new instance of the DateGroupItem class.

Declaration

cs-api-definition
public DateGroupItem(int year, int month, int day, int hour)

Parameters

year

int

The year.

month

int

The month.

day

int

The day.

hour

int

The hour.

DateGroupItem(int, int, int, int, int)

Initializes a new instance of the DateGroupItem class.

Declaration

cs-api-definition
public DateGroupItem(int year, int month, int day, int hour, int minute)

Parameters

year

int

The year.

month

int

The month.

day

int

The day.

hour

int

The hour.

minute

int

The minute.

DateGroupItem(int, int, int, int, int, int)

Initializes a new instance of the DateGroupItem class.

Declaration

cs-api-definition
public DateGroupItem(int year, int month, int day, int hour, int minute, int seconds)

Parameters

year

int

The year.

month

int

The month.

day

int

The day.

hour

int

The hour.

minute

int

The minute.

seconds

int

The seconds.

Properties

DateTimeGroupingType

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

Declaration

cs-api-definition
public DateTimeGroupingType DateTimeGroupingType { get; }

Property Value

DateTimeGroupingType

The grouping type of the item.

Day

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

Declaration

cs-api-definition
public int Day { get; }

Property Value

int

The day.

Hour

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

Declaration

cs-api-definition
public int Hour { get; }

Property Value

int

The hour.

Minute

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

Declaration

cs-api-definition
public int Minute { get; }

Property Value

int

The minute.

Month

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

Declaration

cs-api-definition
public int Month { get; }

Property Value

int

The month.

Second

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

Declaration

cs-api-definition
public int Second { get; }

Property Value

int

The second.

Year

Gets the year component used for matching date values.

Declaration

cs-api-definition
public int Year { get; }

Property Value

int

The year.

Methods

DateSatisfiesItem(DateTime)

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.

Declaration

cs-api-definition
public bool DateSatisfiesItem(DateTime date)

Parameters

date

DateTime

The date.

Returns

bool

A value indicating whether the specified date satisfies the item.

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()