Table of Contents

Method Save

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

Save(string, bool, bool)

Saves the last converted file to the specified file name.

public bool Save(string fileName, bool asXaml, bool asZaml)

Parameters

fileName string

The full path of the output file.

asXaml bool

A value indicating whether to save the output to XAML file.

asZaml bool

A value indicating whether to save the output to ZAML file, which is a G-zip compression of the XAML file.

Returns

bool

This returns true if either asXaml or asZaml is true and the operation is successful.

Remarks

If the output serialization properties are not enabled, this method can be used to save the output to a file.

This will not change the output serialization properties of this object.

Exceptions

InvalidOperationException

If there is no converted drawing from a previous conversion process to be saved.

Save(TextWriter)

public bool Save(TextWriter textWriter)

Parameters

textWriter TextWriter

Returns

bool

Save(Stream)

public bool Save(Stream stream)

Parameters

stream Stream

Returns

bool