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.11.3+Branch.master.Sha.3fcdea311b5a001803ff150de35c25fd4cd62f93.3fcdea311b5a001803ff150de35c25fd4cd62f93
Syntax
public class EnumValue<T> : OpenXmlSimpleValue<T>
where T : struct, new()

Type Parameters

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

The EnumValueT type exposes the following members.

Constructors
 NameDescription
Public methodEnumValueT Initializes a new instance of the EnumValue class.
Public methodEnumValueT(T) Initializes a new instance of the EnumValue class using the supplied value of type T.
Public methodEnumValueT(EnumValueT) Initializes a new instance of the EnumValue by deep copying the supplied EnumValue 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 EnumValue 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