DecimalValue Implicit Conversion (DecimalValue to Decimal)
Implicit converter to Decimal.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
声明
Public Shared Widening Operator CType ( _
xmlAttribute As DecimalValue _
) As Decimal
用法
Dim input As DecimalValue
Dim output As Decimal
output = CType(input, Decimal)
public static implicit operator decimal (
DecimalValue xmlAttribute
)
Parameters
- xmlAttribute
Type: DocumentFormat.OpenXml.DecimalValue
The DecimalValue to be converted.
Return Value
Type: System.Decimal
The internal Decimal value.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when "xmlAttribute" is null. |