Table of Contents

Method Save

Namespace
SharpVectors.Converters
Assembly
SharpVectors.Converters.Wpf.dll

Save(object)

Returns a Extensible Application Markup Language (XAML) string that serializes the provided object.

public string Save(object obj)

Parameters

obj object

The element to be serialized. Typically, this is the root element of a page or application.

Returns

string

Extensible Application Markup Language (XAML) string that can be written to a stream or file. The logical tree of all elements that fall under the provided obj element will be serialized.

Save(object, Stream)

Saves Extensible Application Markup Language (XAML) information into a provided stream to serialize the provided object.

public void Save(object obj, Stream stream)

Parameters

obj object

The element to be serialized. Typically, this is the root element of a page or application.

stream Stream

Destination stream for the serialized XAML information.

Save(object, TextWriter)

Saves Extensible Application Markup Language (XAML) information as the source for a provided text writer object. The output of the text writer can then be used to serialize the provided object.

public void Save(object obj, TextWriter writer)

Parameters

obj object

The element to be serialized. Typically, this is the root element of a page or application.

writer TextWriter

TextWriter instance to use to write the serialized XAML information.

Save(object, XmlWriter)

Saves Extensible Application Markup Language (XAML) information as the source for a provided XML writer object. The output of the XML writer can then be used to serialize the provided object.

public void Save(object obj, XmlWriter xmlWriter)

Parameters

obj object

The element to be serialized. Typically, this is the root element of a page or application.

xmlWriter XmlWriter

Writer to use to write the serialized XAML information.