Search
XmlContext.ReadBrush Method (XName, XElement, Brush)
See Also
 






Reads a Brush object with the specified name.

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

 Syntax

C#  Copy Code

public Brush ReadBrush (
    string elementName,
    XElement parentElement,
    Brush defaultValue
)

Visual Basic  Copy Code

Public Function ReadBrush( _
    elementName As String, _
    parentElement As XElement, _
    defaultValue As Brush _
) As Brush

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

 Return Value

An instance of the Brush class representing the read brush, or defaultValue if reading has failed.

 See Also