DecimalValue.ToDecimal Method
Returns the internal Decimal representation of a DecimalValue object.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Shared Function ToDecimal ( _
xmlAttribute As DecimalValue _
) As Decimal
'Usage
Dim xmlAttribute As DecimalValue
Dim returnValue As Decimal
returnValue = DecimalValue.ToDecimal(xmlAttribute)
public static decimal ToDecimal(
DecimalValue xmlAttribute
)
Parameters
- xmlAttribute
Type: DocumentFormat.OpenXml.DecimalValue
A DecimalValue object to retrieve an internal Decimal representation.
Return Value
Type: System.Decimal
A Decimal value that represents a DecimalValue object.