다음을 통해 공유


DecimalValue Class

Definition

Represents the decimal value for attributes.

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

Constructors

DecimalValue()

Initializes a new instance of the DecimalValue class.

DecimalValue(Decimal)

Initializes a new instance of the DecimalValue class using the supplied Decimal value.

DecimalValue(DecimalValue)

Initializes a new instance of the DecimalValue class by deep copying the supplied DecimalValue 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>)
FromDecimal(Decimal)

Returns a new DecimalValue object that was created from a Decimal value.

GetHashCode() (Inherited from OpenXmlComparableSimpleValue<T>)
GetHashCode() (Inherited from OpenXmlSimpleValue<T>)
ToDecimal(DecimalValue)

Returns the Decimal representation of a DecimalValue object.

ToString()

Returns a String that represents the current value.

(Inherited from OpenXmlSimpleType)

Operators

Implicit(Decimal to DecimalValue)

Initializes a new instance of the DecimalValue class by implicitly converting the supplied Decimal value.

Implicit(DecimalValue to Decimal)

Implicitly converts the specified value to a Decimal value.

Applies to