Share via


DateTimeValue Members

Include Protected Members
Include Inherited Members

Defines DateTimeValue - DateTime value for attributes.

The DateTimeValue type exposes the following members.

Constructors

  Name Description
Public method DateTimeValue() Initializes a new instance of the DateTimeValue.
Public method DateTimeValue(DateTime) Initializes a new instance of the DateTimeValue.
Public method DateTimeValue(DateTimeValue) Initializes a new instance of the DateTimeValue by deep copy.

Top

Properties

  Name Description
Public property HasValue Gets a value indicating whether underneath text value is valid value. (Inherited from OpenXmlSimpleValue<T>.)
Public property InnerText Gets or sets the inner xml text. (Overrides OpenXmlSimpleValue<T>.InnerText.)
Protected property TextValue DON'T use this property. Only for OpenXmlSimpleType.cs internal use. The internal raw text value. (Inherited from OpenXmlSimpleType.)
Public property Value Gets or sets the value of the simple value. (Inherited from OpenXmlSimpleValue<T>.)

Top

Methods

  Name Description
Public method Clone Creates a duplicate of this value. (Inherited from OpenXmlSimpleType.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public methodStatic member FromDateTime Returns a new DateTimeValue object created from DateTime.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public methodStatic member ToDateTime Returns the internal DateTime representation of a DateTimeValue object.
Public method ToString Returns a String that represents the current value. (Inherited from OpenXmlSimpleType.)

Top

Operators

  Name Description
Public operatorStatic member Implicit(DateTime to DateTimeValue) Implicit converter from DateTime.
Public operatorStatic member Implicit(DateTimeValue to DateTime) Implicit converter to DateTime.

Top

See Also

Reference

DateTimeValue Class

DocumentFormat.OpenXml Namespace