Search
XmlContext.ReadFloat Method (XName, XElement, Single)
See Also
 






Reads a float value with the specified name.

Namespace: MindFusion.Spreadsheet.Wpf
Assembly: MindFusion.Spreadsheet.Wpf

 Syntax

C#  Copy Code

public float ReadFloat (
    XName elementName,
    XElement parentElement,
    float defaultValue
)

Visual Basic  Copy Code

Public Function ReadFloat( _
    elementName As XName, _
    parentElement As XElement, _
    defaultValue As Single _
) As Single

 Parameters

elementName

An instance of the .NET XName class that specifies the element to read.

parentElement

An instance of the .NET XElement class that specifies the parent element.

defaultValue

The default value if no element with the specified name exists or its value is not convertible to float.

 Return Value

A float value.

 See Also