Class
SpreadDateGroupItem

Represents a hierarchical date criterion for value-based filtering.

Definition

Namespace:Telerik.Documents.SpreadsheetStreaming

Assembly:Telerik.Documents.SpreadsheetStreaming.dll

Syntax:

cs-api-definition
public class SpreadDateGroupItem

Inheritance: objectSpreadDateGroupItem

Constructors

SpreadDateGroupItem(int)

Initializes a new instance of the SpreadDateGroupItem class with year granularity.

Declaration

cs-api-definition
public SpreadDateGroupItem(int year)

Parameters

year

int

The year to match.

SpreadDateGroupItem(int, int)

Initializes a new instance of the SpreadDateGroupItem class with month granularity.

Declaration

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

Parameters

year

int

The year.

month

int

The month (1-12).

SpreadDateGroupItem(int, int, int)

Initializes a new instance of the SpreadDateGroupItem class with day granularity.

Declaration

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

Parameters

year

int

The year.

month

int

The month (1-12).

day

int

The day (1-31).

SpreadDateGroupItem(int, int, int, int, int, int, SpreadDateTimeGroupingType)

Initializes a new instance of the SpreadDateGroupItem class with all components.

Declaration

cs-api-definition
public SpreadDateGroupItem(int year, int month, int day, int hour, int minute, int second, SpreadDateTimeGroupingType dateTimeGroupingType)

Parameters

year

int

The year (must be >= 1).

month

int

The month (1-12), or 0 when not used at the given granularity.

day

int

The day (1-31), or 0 when not used at the given granularity.

hour

int

The hour (0-23), or 0 when not used at the given granularity.

minute

int

The minute (0-59), or 0 when not used at the given granularity.

second

int

The second (0-59), or 0 when not used at the given granularity.

dateTimeGroupingType

SpreadDateTimeGroupingType

The date/time grouping granularity.

Exceptions

ArgumentOutOfRangeException

Thrown when any component is outside its valid range for the specified granularity.

Properties

DateTimeGroupingType

Gets the date/time grouping granularity.

Declaration

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

Property Value

SpreadDateTimeGroupingType

Day

Gets the day (1-31), or 0 if not used.

Declaration

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

Property Value

int

Hour

Gets the hour (0-23), or 0 if not used.

Declaration

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

Property Value

int

Minute

Gets the minute (0-59), or 0 if not used.

Declaration

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

Property Value

int

Month

Gets the month (1-12), or 0 if not used.

Declaration

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

Property Value

int

Second

Gets the second (0-59), or 0 if not used.

Declaration

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

Property Value

int

Year

Gets the year.

Declaration

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

Property Value

int