ComponentOne FlexGrid for WinForms
ReadXmlDefinition Method
Example 

C1.Win.C1FlexGrid Namespace > IC1ColumnFilter2 Interface : ReadXmlDefinition Method
The instance of the System.Xml.XmlReader which used to read xml filter definition.
Reads XML definition of the filter.
Syntax
'Declaration
 
Sub ReadXmlDefinition( _
   ByVal xr As XmlReader _
) 
void ReadXmlDefinition( 
   XmlReader xr
)

Parameters

xr
The instance of the System.Xml.XmlReader which used to read xml filter definition.
Example
The code below reads xml node value to integer filter field: The code below reads two xml nodes attributes to integer filter fields:
while (xr.Read())
{
    // read xml node value
    if (xr.NodeType == XmlNodeType.Text)
    {
        int.TryParse(xr.Value, out _field1);
    }
}
while (xr.Read())
{
    if (xr.NodeType == XmlNodeType.Element)
    {
        // read "Minimum" xml node attribute
        if (xr.Name == "Minimum")
        {
            int.TryParse(xr.GetAttribute("Value"), out _minimum);
        }
            
        // read "Maximum" xml node attribute
        if (xr.Name == "Maximum")
        {
            int.TryParse(xr.GetAttribute("Value"), out _maximum);
        }
    }
}
See Also

Reference

IC1ColumnFilter2 Interface
IC1ColumnFilter2 Members