次の方法で共有


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

Implicit converter from enum.

Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'宣言
Public Shared Widening Operator CType ( _
    value As T _
) As EnumValue(Of T)
'使用
Dim input As T
Dim output As EnumValue(Of T)

output = CType(input, EnumValue(Of T))
public static implicit operator EnumValue<T> (
    T value
)

Parameters

  • value
    Type: T
    The value with type T

Return Value

Type: DocumentFormat.OpenXml.EnumValue<T>
A new EnumValue instance with the value.

See Also

Reference

EnumValue<T> Class

EnumValue<T> Members

Implicit Overload

DocumentFormat.OpenXml Namespace