[]
        
(Showing Draft Content)

C1.Win.C1FlexGrid.BaseFilter.WriteXmlDefinition

WriteXmlDefinition Method

WriteXmlDefinition(XmlWriter)

Writes XML definition of the filter.

Declaration
public abstract void WriteXmlDefinition(XmlWriter xw)
Parameters
Type Name Description
XmlWriter xw

The instance of the XmlWriter which used to write xml filter definition.

Implements
Examples

The code below writes one integer filter field as xml value:

// write filter field as value
xw.WriteString(_field.ToString());

The code below writes two integer filter fields as xml nodes with attributes:

// 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();