com.aspose.diagram
Class DiagramSaveOptions

java.lang.Object
  extended by SaveOptions
      extended by com.aspose.diagram.DiagramSaveOptions

public class DiagramSaveOptions 
extends SaveOptions

Can be used to specify additional options when saving a diagram into Visio (VDX\VSX) format. At the moment provides only the SaveFormat property, but in the future will have other options added.


Constructor Summary
DiagramSaveOptions()
           Initializes a new instance of this class that can be used to save a diagram in the VDX format.
DiagramSaveOptions(int saveFormat)
           Initializes a new instance of this class that can be used to save a diagram in the VDX or VSX format.
 
Property Getters/Setters Summary
booleangetAutoFitPageToDrawingContent()
voidsetAutoFitPageToDrawingContent(boolean)
           Defines whether need enlarge page to fit drawing content or not.
java.lang.StringgetDefaultFont()→ inherited from SaveOptions
voidsetDefaultFont(java.lang.String)
           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.
intgetSaveFormat()
voidsetSaveFormat(int)
           Specifies the format in which the rendered diagram will be saved if this save options object is used. Can be SaveFileFormat or SaveFileFormat. The value of the property is SaveFileFormat integer constant.
IWarningCallbackgetWarningCallback()→ inherited from SaveOptions
voidsetWarningCallback(IWarningCallback)
           Gets or sets warning callback.
 

Constructor Detail

DiagramSaveOptions

public DiagramSaveOptions()
                   throws java.lang.Exception
Initializes a new instance of this class that can be used to save a diagram in the VDX format.

DiagramSaveOptions

public DiagramSaveOptions(int saveFormat)
                   throws java.lang.Exception
Initializes a new instance of this class that can be used to save a diagram in the VDX or VSX format.
Parameters:
saveFormat - A SaveFileFormat value.

Property Getters/Setters Detail

getSaveFormat/setSaveFormat

public int getSaveFormat() / public void setSaveFormat(int value)
Specifies the format in which the rendered diagram will be saved if this save options object is used. Can be SaveFileFormat or SaveFileFormat. The value of the property is SaveFileFormat integer constant.

getAutoFitPageToDrawingContent/setAutoFitPageToDrawingContent

public boolean getAutoFitPageToDrawingContent() / public void setAutoFitPageToDrawingContent(boolean value)
Defines whether need enlarge page to fit drawing content or not. Default value is false.

getDefaultFont/setDefaultFont

→ inherited from SaveOptions
public java.lang.String getDefaultFont() / public void setDefaultFont(java.lang.String 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

→ inherited from SaveOptions
public IWarningCallback getWarningCallback() / public void setWarningCallback(IWarningCallback value)
Gets or sets warning callback.

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