Class XDLSWriter
Summary description for DLSXmlWriter.
Inheritance
System.Object
XDLSWriter
Namespace: Syncfusion.DocIO.DLS.XML
Assembly: Syncfusion.DocIO.UWP.dll
Syntax
public class XDLSWriter : Object, IXDLSAttributeWriter, IXDLSContentWriter
Constructors
XDLSWriter(XmlWriter)
Declaration
public XDLSWriter(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer |
Properties
InnerWriter
Gets the inner writer.
Declaration
public XmlWriter InnerWriter { get; }
Property Value
Type | Description |
---|---|
System.Xml.XmlWriter | The inner writer. |
Methods
Serialize(IXDLSSerializable)
Declaration
public void Serialize(IXDLSSerializable value)
Parameters
Type | Name | Description |
---|---|---|
IXDLSSerializable | value |
WriteChildBinaryElement(String, Byte[])
Writes binary value.
Declaration
public void WriteChildBinaryElement(string name, byte[] value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Byte[] | value | The value. |
WriteChildElement(String, Object)
Writes the child element.
Declaration
public void WriteChildElement(string name, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Object | value | The value. |
WriteChildRefElement(String, Int32)
Writes the child ref element.
Declaration
public void WriteChildRefElement(string name, int refToElement)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Int32 | refToElement | The ref to element. |
WriteChildStringElement(String, String)
Writes the child string element.
Declaration
public void WriteChildStringElement(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.String | value | The value. |
WriteCustomElement(String, Object)
Declaration
protected virtual void WriteCustomElement(string tagName, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | tagName | |
System.Object | value |
WriteValue(String, Color)
Writes color as string to XML.
Declaration
public void WriteValue(string name, Color value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of attribute. |
Color | value | Color structure. |
WriteValue(String, Boolean)
Writes the value.
Declaration
public void WriteValue(string name, bool value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Boolean | value | if it is specifies value, set to |
WriteValue(String, DateTime)
Writes DateTime as string to XML.
Declaration
public void WriteValue(string name, DateTime value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of attribute. |
System.DateTime | value | Color structure. |
WriteValue(String, Double)
Writes the value.
Declaration
public void WriteValue(string name, double value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Double | value | The value. |
WriteValue(String, Enum)
Writes the value.
Declaration
public void WriteValue(string name, Enum value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Enum | value | The value. |
WriteValue(String, Int32)
Writes the value.
Declaration
public void WriteValue(string name, int value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Int32 | value | The value. |
WriteValue(String, Single)
Writes the value.
Declaration
public void WriteValue(string name, float value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Single | value | The value. |
WriteValue(String, String)
Writes the value.
Declaration
public void WriteValue(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.String | value | The value. |