com.aspose.diagram
Class XAMLSaveOptions

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

public class XAMLSaveOptions 
extends SaveOptions

Allows to specify additional options when rendering diagram pages to XAML.


Constructor Summary
XAMLSaveOptions()
           Initializes a new instance of this class that can be used to save a document in the SaveFileFormat format.
 
Property Getters/Setters Summary
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.
intgetPageCount()
voidsetPageCount(int)
           Gets or sets the number of pages to render in XAML. Default is MaxValue which means all pages of the diagram will be rendered.
intgetPageIndex()
voidsetPageIndex(int)
           Gets or sets the 0-based index of the first page to render. Default is 0.
booleangetSaveForegroundPagesOnly()
voidsetSaveForegroundPagesOnly(boolean)
           Specifies whether all pages will be saved in image or only foreground.
intgetSaveFormat()
voidsetSaveFormat(int)
           Specifies the format in which the rendered diagram pages will be saved if this save options object is used. Can be SaveFileFormat only. The value of the property is SaveFileFormat integer constant.
IStreamProvidergetStreamProvider()
voidsetStreamProvider(IStreamProvider)
           Gets or sets the IStreamProvider for exporting objects.
IWarningCallbackgetWarningCallback()→ inherited from SaveOptions
voidsetWarningCallback(IWarningCallback)
           Gets or sets warning callback.
 

Constructor Detail

XAMLSaveOptions

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

Property Getters/Setters Detail

getPageCount/setPageCount

public int getPageCount() / public void setPageCount(int value)
Gets or sets the number of pages to render in XAML. Default is MaxValue which means all pages of the diagram will be rendered.

getPageIndex/setPageIndex

public int getPageIndex() / public void setPageIndex(int value)
Gets or sets the 0-based index of the first page to render. Default is 0.

getSaveFormat/setSaveFormat

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

getSaveForegroundPagesOnly/setSaveForegroundPagesOnly

public boolean getSaveForegroundPagesOnly() / public void setSaveForegroundPagesOnly(boolean value)
Specifies whether all pages will be saved in image or only foreground. If true - rendered only foreground pages(with background if present). If false - rendered foreground pages(with background if present) after that empty background pages. Can return true only when PageCount > 1. The default value is false.

getStreamProvider/setStreamProvider

public IStreamProvider getStreamProvider() / public void setStreamProvider(IStreamProvider value)
Gets or sets the IStreamProvider for exporting objects.

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.