aspose.diagram
Class SaveOptions

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.

Property Getters/Setters Summary
functiongetDefaultFont()
functionsetDefaultFont(value)
           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.
functiongetSaveFormat()
functionsetSaveFormat(value)
           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.
functiongetWarningCallback()
functionsetWarningCallback(value)
           Gets or sets warning callback.
 
Method Summary
static functioncreateSaveOptions(saveFormat)
           Creates a save options object of a class suitable for the specified save format.
 

Property Getters/Setters Detail

getSaveFormat/setSaveFormat : Number 

function getSaveFormat() / function setSaveFormat(value)
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.

getDefaultFont/setDefaultFont : String 

function getDefaultFont() / function setDefaultFont(value)
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.

getWarningCallback/setWarningCallback : IWarningCallback 

function getWarningCallback() / function setWarningCallback(value)
Gets or sets warning callback.

Method Detail

createSaveOptions

static function createSaveOptions(saveFormat)
Creates a save options object of a class suitable for the specified save format.
Parameters:
saveFormat: Number - A SaveFileFormat value. The SaveFileFormat for which to create a save options object.
Returns:
An object of a class that derives from SaveOptions.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.