DateGroupItem Class

Date Grouping.When the object is serialized out as xml, its qualified name is x:dateGroupItem.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Spreadsheet.DateGroupItem

Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Class DateGroupItem _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As DateGroupItem
public class DateGroupItem : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 1st Edition]

18.3.2.4 dateGroupItem (Date Grouping)

This collection is used to express a group of dates or times which are used in an AutoFilter criteria. [Note: See parent element for an example. end note] Values are always written in the calendar type of the first date encountered in the filter range, so that all subsequent dates, even when formatted or represented by other calendar types, can be correctly compared for the purposes of filtering.

Parent Elements

filters (§18.3.2.8)

Attributes

Description

dateTimeGrouping (Date Time Grouping)

Grouping level.

The possible values for this attribute are defined by the ST_DateTimeGrouping simple type (§18.18.22).

day (Day)

Day (1-31)

The possible values for this attribute are defined by the W3C XML Schema unsignedShort datatype.

hour (Hour)

Hour (0-23)

The possible values for this attribute are defined by the W3C XML Schema unsignedShort datatype.

minute (Minute)

Minute (0-59)

The possible values for this attribute are defined by the W3C XML Schema unsignedShort datatype.

month (Month)

Month (1-12)

The possible values for this attribute are defined by the W3C XML Schema unsignedShort datatype.

second (Second)

Second (0-59)

The possible values for this attribute are defined by the W3C XML Schema unsignedShort datatype.

year (Year)

Year (4 digits)

The possible values for this attribute are defined by the W3C XML Schema unsignedShort datatype.

[Note: The W3C XML Schema definition of this element’s content model (CT_DateGroupItem) is located in §A.2. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DateGroupItem Members

DocumentFormat.OpenXml.Spreadsheet Namespace