Aracılığıyla paylaş


EnumValue<T> Class

Definition

Represents the enum value for attributes.

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

Type Parameters

T

Type of enum.

Inheritance
Inheritance
EnumValue<T>

Constructors

EnumValue<T>()

Initializes a new instance of the EnumValue<T> class.

EnumValue<T>(EnumValue<T>)

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

EnumValue<T>(T)

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

Properties

HasValue
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
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)
Equals(Object) (Inherited from OpenXmlSimpleValue<T>)
GetHashCode() (Inherited from OpenXmlSimpleValue<T>)
ToString()

Returns a String that represents the current value.

(Inherited from OpenXmlSimpleType)

Operators

Implicit(EnumValue<T> to String)

Implicitly converts the specified value to a String value.

Implicit(EnumValue<T> to T)

Implicitly converts the specified value to an enum.

Implicit(T to EnumValue<T>)

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

Applies to