Share via


IntegerValue Class

Definition

Represents the xsd:integer value for attributes.

public class IntegerValue : DocumentFormat.OpenXml.OpenXmlComparableSimpleValue<long>
public class IntegerValue : DocumentFormat.OpenXml.OpenXmlSimpleValue<long>
type IntegerValue = class
    inherit OpenXmlComparableSimpleValue<int64>
type IntegerValue = class
    inherit OpenXmlSimpleValue<int64>
Public Class IntegerValue
Inherits OpenXmlComparableSimpleValue(Of Long)
Public Class IntegerValue
Inherits OpenXmlSimpleValue(Of Long)
Inheritance
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.

Constructors

IntegerValue()

Initializes a new instance of the IntegerValue class.

IntegerValue(Int64)

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

IntegerValue(IntegerValue)

Initializes a new instance of the IntegerValue class by deep copying the supplied IntegerValue 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>)
FromInt64(Int64)

Returns a new IntegerValue object created from an Int64 value.

GetHashCode() (Inherited from OpenXmlComparableSimpleValue<T>)
GetHashCode() (Inherited from OpenXmlSimpleValue<T>)
ToInt64(IntegerValue)

Returns the Int64 representation of an IntegerValue object.

ToString()

Returns a String that represents the current value.

(Inherited from OpenXmlSimpleType)

Operators

Implicit(Int64 to IntegerValue)

Implicitly converts the specified Int64 value to an IntegerValue class.

Implicit(IntegerValue to Int64)

Implicitly converts the specified IntegerValue to an Int64 value.

Applies to