Click or drag to resize

EnumValueT Class

Represents the enum 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 EnumValue<T> : OpenXmlSimpleValue<T>
where T : struct, new()

Type Parameters

T
Every enum value must be an enum with the EnumStringAttribute object.

The EnumValueT type exposes the following members.

Constructors
 NameDescription
Public methodEnumValueT Initializes a new instance of the EnumValueT class.
Public methodEnumValueT(T) Initializes a new instance of the EnumValueT class using the supplied value of type T.
Public methodEnumValueT(EnumValueT) Initializes a new instance of the EnumValueT by deep copying the supplied EnumValueT 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 methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from OpenXmlSimpleValueT)
Public methodGetHashCodeServes as the default hash function.
(Inherited from OpenXmlSimpleValueT)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToString Returns a String that represents the current value.
(Inherited from OpenXmlSimpleType)
Top
Operators
 NameDescription
Public operatorStatic member(T to EnumValueT) Initializes a new EnumValueT class by converting the supplied enum value.
Public operatorStatic member(EnumValueT to T) Implicitly converts the specified value to an enum.
Public operatorStatic member(EnumValueT to String) Implicitly converts the specified value to a String value.
Top
See Also