Click or drag to resize

IntegerValue Class

Represents the xsd:integer value for attributes.
Inheritance Hierarchy

Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll) Version: 2.20.0+Branch.release-v2.20.0.Sha.a873d3fbff9bffe179fea62486da950adf5be65d.a873d3fbff9bffe179fea62486da950adf5be65d
Syntax
public class IntegerValue : OpenXmlComparableSimpleValue<long>

The IntegerValue type exposes the following members.

Constructors
 NameDescription
Public methodIntegerValue Initializes a new instance of the IntegerValue class.
Public methodIntegerValue(Int64) Initializes a new instance of the IntegerValue class using the supplied Int64 value.
Public methodIntegerValue(IntegerValue) Initializes a new instance of the IntegerValue class by deep copying the supplied IntegerValue class.
Top
Properties
 NameDescription
Public propertyHasValue Gets a value indicating whether the underneath text value is a valid value.
(Inherited from OpenXmlSimpleValueT)
Public propertyInnerText Gets or sets the inner XML text.
(Inherited from OpenXmlSimpleValueT)
Public propertyValue Gets or sets the value of the simple value.
(Inherited from OpenXmlSimpleValueT)
Top
Methods
 NameDescription
Public methodClone Creates a duplicate of the current value.
(Inherited from OpenXmlSimpleType)
Public methodCompareTo(Object)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
(Inherited from OpenXmlComparableSimpleValueT)
Public methodCompareTo(T)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
(Inherited from OpenXmlComparableSimpleValueT)
Public methodCompareTo(OpenXmlComparableSimpleValueT)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
(Inherited from OpenXmlComparableSimpleValueT)
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Inherited from OpenXmlComparableSimpleValueT)
Public methodEquals(T)Indicates whether the current object is equal to another object of the same type.
(Inherited from OpenXmlComparableSimpleValueT)
Public methodEquals(OpenXmlComparableSimpleValueT)Indicates whether the current object is equal to another object of the same type.
(Inherited from OpenXmlComparableSimpleValueT)
Public methodStatic memberFromInt64 Returns a new IntegerValue object created from an Int64 value.
Public methodGetHashCodeServes as the default hash function.
(Inherited from OpenXmlComparableSimpleValueT)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberToInt64 Returns the Int64 representation of an IntegerValue object.
Public methodToString Returns a String that represents the current value.
(Inherited from OpenXmlSimpleType)
Top
Operators
 NameDescription
Public operatorStatic member(Int64 to IntegerValue) Implicitly converts the specified Int64 value to an IntegerValue class.
Public operatorStatic member(IntegerValue to Int64) Implicitly converts the specified IntegerValue to an Int64 value.
Top
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.
See Also