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