Write(XmlWriter) Method

Definition

Namespace Svg
Assembly Svg.Custom.dll

Write this SvgElement out using a given XmlWriter.

public virtual void Write(XmlWriter writer)

Parameters

writer
XmlWriter

The XmlWriter to use.

Remarks

Recommendation is to create an XmlWriter by calling a factory method,
e.g. System.Xml.XmlWriter.Create(System.IO.Stream), as per Microsoft documentation.

However, unlike an System.Xml.XmlTextWriter created via 'new XmlTextWriter()',
a factory-constructed XmlWriter will not flush output until it is closed
(normally via a using statement), or unless the client explicitly calls System.Xml.XmlWriter.Flush.