EnumValue<T> EnumValue<T> EnumValue<T> Class

Definition

Represents the enum value for attributes.

public class EnumValue<T> : DocumentFormat.OpenXml.OpenXmlSimpleType where T : struct
type EnumValue<'T (requires 'T : struct)> = class
    inherit OpenXmlSimpleType
Public Class EnumValue(Of T)
Inherits OpenXmlSimpleType

Type Parameters

T

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

Inheritance

Constructors

EnumValue<T>() EnumValue<T>() EnumValue<T>()

Initializes a new instance of the EnumValue class.

EnumValue<T>(EnumValue<T>) EnumValue<T>(EnumValue<T>) EnumValue<T>(EnumValue<T>)

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

EnumValue<T>(T) EnumValue<T>(T) EnumValue<T>(T)

Initializes a new instance of the EnumValue class using the supplied value of type T.

Properties

HasValue HasValue HasValue

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

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 enum.

Operators

Implicit(EnumValue<T> to String) Implicit(EnumValue<T> to String) Implicit(EnumValue<T> to String)

Implicitly converts the specified value to a String value.

Implicit(EnumValue<T> to T) Implicit(EnumValue<T> to T) Implicit(EnumValue<T> to T)

Implicitly converts the specified value to an enum.

Implicit(T to EnumValue<T>) Implicit(T to EnumValue<T>) Implicit(T to EnumValue<T>)

Initializes a new EnumValue class by converting the supplied enum value.

Methods

Clone() Clone() Clone()

Creates a duplicate of the current value.

(Inherited from OpenXmlSimpleType)
ToString() ToString() ToString()

Returns a String that represents the current value.

(Inherited from OpenXmlSimpleType)

Applies to