Search
XmlContext.ReadBool Method (XName, XElement, Boolean)
See Also
 






Reads a boolean value with the specified name.

Namespace: MindFusion.Spreadsheet
Assembly: MindFusion.Spreadsheet.WinForms

 Syntax

C#  Copy Code

public bool ReadBool (
    XName elementName,
    XElement parentElement,
    bool defaultValue
)

Visual Basic  Copy Code

Public Function ReadBool( _
    elementName As XName, _
    parentElement As XElement, _
    defaultValue As Boolean _
) As Boolean

 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 boolean.

 Return Value

A boolean value.

 See Also