Click or drag to resize

DateTimeGroup Structure

Represents a group of DateTimes.

Each DateTime instance that has the same date/time components (year, month, day, hour, minute, second) as this DateTime up to Level belongs to this group.

Instance of DateTimeGroup can be inserted into Values collection to enable filtering DateTime values.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1132
Syntax
public struct DateTimeGroup : IEquatable<DateTimeGroup>

The DateTimeGroup type exposes the following members.

Constructors
  NameDescription
Public methodDateTimeGroup(Int32)
Initializes a new instance of the DateTimeGroup type with Year level.
Public methodDateTimeGroup(Int32, Int32)
Initializes a new instance of the DateTimeGroup type with Month level.
Public methodDateTimeGroup(Int32, Int32, Int32)
Initializes a new instance of the DateTimeGroup type with Day level.
Public methodDateTimeGroup(Int32, Int32, Int32, Int32)
Initializes a new instance of the DateTimeGroup type with Hour level.
Public methodDateTimeGroup(Int32, Int32, Int32, Int32, Int32)
Initializes a new instance of the DateTimeGroup type with Minute level.
Public methodDateTimeGroup(Int32, Int32, Int32, Int32, Int32, Int32)
Initializes a new instance of the DateTimeGroup type with Second level.
Top
Properties
  NameDescription
Public propertyDateTime

Gets the date/time of this DateTimeGroup.

Valid date/time components are only those upon to Level.

Public propertyLevel
Gets the grouping level of this DateTimeGroup.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Object is equal to this DateTimeGroup instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(DateTimeGroup)
Determines whether the other DateTimeGroup is equal to this DateTimeGroup instance.
Public methodGetHashCode
Returns a hash code for this DateTimeGroup instance.
(Overrides ValueTypeGetHashCode.)
Public methodToString
Returns a String that represents this DateTimeGroup instance.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether first and second DateTimeGroups are equal.
Public operatorStatic memberInequality
Determines whether first and second DateTimeGroups are not equal.
Top
See Also