ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.8 Assembly / C1.Win.C1FlexGrid Namespace / IC1ColumnFilter2 Interface / ReadXmlDefinition Method
The instance of the System.Xml.XmlReader which used to read xml filter definition.
Example

In This Topic
    ReadXmlDefinition Method (IC1ColumnFilter2)
    In This Topic
    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