SaveOptions

SaveOptions class

This is an abstract base class for classes that allow the user to specify additional options when saving a diagram into a particular format. An instance of the SaveOptions class or any derived class is passed to the stream Save or string Save overloads for the user to define custom options when saving a document.

Methods

NameDescription
createSaveOptions(saveFormat) (static)Creates a save options object of a class suitable for the specified save format.
getDefaultFont()When characters in the diagram are unicode and not be set with correct font value or the font is not installed locally,
getSaveFormat()Specifies the format in which the document will be saved if this save options object is used. The value of the property
getWarningCallback()Gets or sets warning callback.
setDefaultFont()When characters in the diagram are unicode and not be set with correct font value or the font is not installed locally,
setSaveFormat()Specifies the format in which the document will be saved if this save options object is used. The value of the property
setWarningCallback()Gets or sets warning callback.

createSaveOptions(saveFormat) (static)

Creates a save options object of a class suitable for the specified save format.

ParameterTypeDescription
saveFormatNumberSaveFileFormat

Returns: SaveOptions — SaveOptions An object of a class that derives from SaveOptions.

getDefaultFont()

When characters in the diagram are unicode and not be set with correct font value or the font is not installed locally, they may appear as block in pdf, image or XPS. Set the DefaultFont such as MingLiu or MS Gothic to show these characters.

getSaveFormat()

Specifies the format in which the document will be saved if this save options object is used. The value of the property is SaveFileFormat integer constant.

getWarningCallback()

Gets or sets warning callback.

setDefaultFont()

When characters in the diagram are unicode and not be set with correct font value or the font is not installed locally, they may appear as block in pdf, image or XPS. Set the DefaultFont such as MingLiu or MS Gothic to show these characters.

setSaveFormat()

Specifies the format in which the document will be saved if this save options object is used. The value of the property is SaveFileFormat integer constant.

setWarningCallback()

Gets or sets warning callback.