Search
XmlContext.ReadInt Method (XName, XElement, Int32)
See Also
 






Reads an integer value with the specified name.

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

 Syntax

C#  Copy Code

public int ReadInt (
    XName elementName,
    XElement parentElement,
    int defaultValue
)

Visual Basic  Copy Code

Public Function ReadInt( _
    elementName As XName, _
    parentElement As XElement, _
    defaultValue As Integer _
) As Integer

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

 Return Value

An integer value.

 See Also