IntegerValue IntegerValue IntegerValue Class

Definition

Represents the xsd:integer value for attributes.

public class IntegerValue : DocumentFormat.OpenXml.OpenXmlSimpleValue<long>
type IntegerValue = class
    inherit OpenXmlSimpleValue<int64>
Public Class IntegerValue
Inherits OpenXmlSimpleValue(Of Long)
Inheritance

Remarks

Integer is derived from decimal by fixing the value of fractionDigits to be 0 and disallowing the trailing decimal point.

The value space of integer is the infinite set {...,-2,-1,0,1,2,...}. The base type of integer is decimal.

Use Int64 as the internal type for now.

TODO: Should decimal be used as the internal type?

Constructors

IntegerValue() IntegerValue() IntegerValue()

Initializes a new instance of the IntegerValue class.

IntegerValue(Int64) IntegerValue(Int64) IntegerValue(Int64)

Initializes a new instance of the IntegerValue class using the supplied Int64 value.

IntegerValue(IntegerValue) IntegerValue(IntegerValue) IntegerValue(IntegerValue)

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

Properties

HasValue HasValue HasValue

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

(Inherited from OpenXmlSimpleValue<T>)
InnerText InnerText InnerText

Gets or sets the inner XML text.

TextValue TextValue TextValue

DON'T use this property. Only for OpenXmlSimpleType.cs internal use. The internal raw text value.

(Inherited from OpenXmlSimpleType)
Value Value Value

Gets or sets the value of the simple value.

(Inherited from OpenXmlSimpleValue<T>)

Methods

Clone() Clone() Clone()

Creates a duplicate of the current value.

(Inherited from OpenXmlSimpleType)
FromInt64(Int64) FromInt64(Int64) FromInt64(Int64)

Returns a new IntegerValue object created from an Int64 value.

ToInt64(IntegerValue) ToInt64(IntegerValue) ToInt64(IntegerValue)

Returns the Int64 representation of an IntegerValue object.

ToString() ToString() ToString()

Returns a String that represents the current value.

(Inherited from OpenXmlSimpleType)

Operators

Implicit(Int64 to IntegerValue) Implicit(Int64 to IntegerValue) Implicit(Int64 to IntegerValue)

Implicitly converts the specified Int64 value to an IntegerValue class.

Implicit(IntegerValue to Int64) Implicit(IntegerValue to Int64) Implicit(IntegerValue to Int64)

Implicitly converts the specified IntegerValue to an Int64 value.

Applies to