MindFusion.Wpf Pack Programmer's Guide
XmlContext.ReadBrush Method (XName, XElement, Brush)
See Also
 





Reads a Brush object with the specified name.

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

 Syntax

C#  Copy Code

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

Visual Basic  Copy Code

Public Function ReadBrush( _
    elementName As XName, _
    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 WPF Brush class representing the read brush, or null (Nothing in Visual Basic) if reading has failed.

 See Also

ReadBrush Method Overload List
XmlContext Members
XmlContext Class
MindFusion.Spreadsheet.Wpf Namespace