FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / IC1ColumnFilter2 Interface / WriteXmlDefinition Method
The instance of the System.Xml.XmlWriter which used to write xml filter definition.
Example

In This Topic
    WriteXmlDefinition Method (IC1ColumnFilter2)
    In This Topic
    Writes XML definition of the filter.
    Syntax
    'Declaration
     
    
    Sub WriteXmlDefinition( _
       ByVal xw As XmlWriter _
    ) 
    void WriteXmlDefinition( 
       XmlWriter xw
    )

    Parameters

    xw
    The instance of the System.Xml.XmlWriter which used to write xml filter definition.
    Example
    The code below writes one integer filter field as xml value: The code below writes two integer filter fields as xml nodes with attributes:
    // write filter field as value
    xw.WriteString(_field.ToString());
    // write _minimum field as xml node with attribute
    xw.WriteStartElement("Minimum");
    xw.WriteAttributeString("Value", _minimum.ToString());
    xw.WriteEndElement();
                
    // write _maximum field as xml node with attribute
    xw.WriteStartElement("Maximum");
    xw.WriteAttributeString("Value", _maximum.ToString());
    xw.WriteEndElement();
    See Also