次の方法で共有


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

Implicit converter to enum.

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

Syntax

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

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

Parameters

Return Value

Type: T
The internal enum value.

Exceptions

Exception Condition
InvalidOperationException

Thrown when "xmlAttribute" is null.

See Also

Reference

EnumValue<T> Class

EnumValue<T> Members

Implicit Overload

DocumentFormat.OpenXml Namespace