共用方式為


DateTimeValue Class

Definition

Represents the DateTime value for attributes.

public class DateTimeValue : DocumentFormat.OpenXml.OpenXmlComparableSimpleValue<DateTime>
public class DateTimeValue : DocumentFormat.OpenXml.OpenXmlSimpleValue<DateTime>
type DateTimeValue = class
    inherit OpenXmlComparableSimpleValue<DateTime>
type DateTimeValue = class
    inherit OpenXmlSimpleValue<DateTime>
Public Class DateTimeValue
Inherits OpenXmlComparableSimpleValue(Of DateTime)
Public Class DateTimeValue
Inherits OpenXmlSimpleValue(Of DateTime)
Inheritance
Inheritance

Constructors

DateTimeValue()

Initializes a new instance of the DateTimeValue class.

DateTimeValue(DateTime)

Initializes a new instance of the DateTimeValue class using the supplied DateTime value.

DateTimeValue(DateTimeValue)

Initializes a new instance of the DateTimeValue class by deep copying the supplied DateTimeValue class.

Properties

HasValue

Gets a value that indicates whether the underneath text value is a valid value.

(Inherited from OpenXmlSimpleValue<T>)
InnerText
InnerText

Gets or sets the inner XML text.

(Inherited from OpenXmlSimpleValue<T>)
TextValue
Obsolete.

Gets or sets the internal raw text value. DO NOT use this property. Only for OpenXmlSimpleType.cs internal use.

(Inherited from OpenXmlSimpleType)
Value

Gets or sets the value of the simple value.

(Inherited from OpenXmlSimpleValue<T>)

Methods

Clone()

Creates a duplicate of the current value.

(Inherited from OpenXmlSimpleType)
CompareTo(Object) (Inherited from OpenXmlComparableSimpleValue<T>)
CompareTo(OpenXmlComparableSimpleValue<T>) (Inherited from OpenXmlComparableSimpleValue<T>)
CompareTo(T) (Inherited from OpenXmlComparableSimpleValue<T>)
Equals(Object) (Inherited from OpenXmlComparableSimpleValue<T>)
Equals(Object) (Inherited from OpenXmlSimpleValue<T>)
Equals(OpenXmlComparableSimpleValue<T>) (Inherited from OpenXmlComparableSimpleValue<T>)
Equals(T) (Inherited from OpenXmlComparableSimpleValue<T>)
FromDateTime(DateTime)

Returns a new DateTimeValue object that was created from a DateTime value.

GetHashCode() (Inherited from OpenXmlComparableSimpleValue<T>)
GetHashCode() (Inherited from OpenXmlSimpleValue<T>)
ToDateTime(DateTimeValue)

Returns the DateTime value representation of a DateTimeValue object.

ToString()

Returns a String that represents the current value.

(Inherited from OpenXmlSimpleType)

Operators

Implicit(DateTime to DateTimeValue)

Initializes a new instance of the DateTimeValue class by implicitly converting the supplied DateTime value.

Implicit(DateTimeValue to DateTime)

Implicitly converts the specified value to a DateTime value.

Applies to