Table of Contents

Class Serializer

Namespace
VectorDraw.Serialize
Assembly
VectorDraw.Serialize.dll
public abstract class Serializer : BaseObject, IBaseObject, IDisposable
Inheritance
Serializer
Implements
Derived
Inherited Members

Constructors

Serializer()

Initializes the object as uncompressed Memory stream.

Serializer(Stream)

Initializes the object with the passed parameters.

Serializer(string, int)

Initializes the object with the passed parameters.

Properties

ContainsLargeRangeCharacters

Specifies if the document contains strings with characters in range bigger than 56207.Used when saving in vdml or vdcl format. This may slow down the saving time. Set it to true , before saving the document in vdml,vdcl format, if you are using serializable string properties with characters in range bigger than 56207. Default value is false.

DoublePrecision

Get/Set the maximum number of decimal digits used when saving double values in vdml format.Valid range 0 - 17

DoublePrecisionFormat

Get the format precision string used for the ToString of the objects and for saving a double value.

HandleTableGuid

Get/Set a vdGuidTable that will be used to save the object's unique Guid

Stream

Get the Stream of the saved file.

actiVator

Get the Activator used for Types that will be saved.

vdExportFlags

Internally used , instead check the VectorDraw.Professional.vdObjects.vdFileProperties.vdExportFlags

Methods

AddReferenceObject(object)

Add objects that reference the serializable objects

Close()

Closes the Serializer's stream and releases any resources (such as sockets and file handles) associated with the Serializer's stream.

ContainsObject(IVDHandle)

Returns true in case passed object already serialized.

Dispose()

Releases all resources used by the object.

DoubleToString(double, string)

Internally used.convert a double value to string for using inside the VectorDraw vdml serializer

~Serializer()

Object deconstructor

FloatToString(float, string)

Internally used.convert a double value to string for using inside the VectorDraw vdml serializer

Flush()

Clears all buffers for the Serializer's stream and causes any buffered data to be written to the underlying device.

Serialize(object, string)

This Function is called when saving the object to vdml format.

ToMemoryStream()

Internally used only.

WriteBegin(Activator)

Begins and Writes in the file the passed Activator Types and set the passed Activator as the Activator to be used when saving.

WriteEnd()

Ends the file saving.

Events

OnModifyHandle

Fires when a handle is to be changed for a reason.