DiagramPage
Inheritance: java.lang.Object, com.groupdocs.watermark.contents.ContentPart
public class DiagramPage extends ContentPart
Represents a Visio document page.
Methods
Method | Description |
---|---|
getShapes() | Gets the collection of all shapes of the page. |
isBackground() | Gets a value indicating whether the page is a background page. |
getBackgroundPage() | Gets the background page for this . |
getWidth() | Gets the width of this in points. |
getHeight() | Gets the height of this in points. |
getTopMargin() | Gets the size of the top margin in points. |
getRightMargin() | Gets the size of the right margin in points. |
getBottomMargin() | Gets the size of the bottom margin in points. |
getLeftMargin() | Gets the size of the left margin in points. |
isVisible() | Gets a value indicating whether the page is visible in UI. |
setVisible(boolean value) | Sets a value indicating whether the page is visible in UI. |
getName() | Gets the name of this DiagramPage . |
getAsposeDiagramPage() | |
getContent() | |
getPageToDrawingScale() | |
addWatermark(Watermark watermark, DiagramShapeSettings shapeSettings) | |
convertValueFromDrawingScaleToPageScale(DoubleValue value) |
getShapes()
public final DiagramShapeCollection getShapes()
Gets the collection of all shapes of the page.
Returns: DiagramShapeCollection - The collection of all shapes of the page.
isBackground()
public final boolean isBackground()
Gets a value indicating whether the page is a background page.
Returns: boolean - True if the page is a background page; otherwise, false.
getBackgroundPage()
public final DiagramPage getBackgroundPage()
Gets the background page for this .
Returns: DiagramPage - The background page for this .
getWidth()
public final double getWidth()
Gets the width of this in points.
Returns: double - The width of this in points.
getHeight()
public final double getHeight()
Gets the height of this in points.
Returns: double - The height of this in points.
getTopMargin()
public final double getTopMargin()
Gets the size of the top margin in points.
Returns: double - The size of the top margin in points.
getRightMargin()
public final double getRightMargin()
Gets the size of the right margin in points.
Returns: double - The size of the right margin in points.
getBottomMargin()
public final double getBottomMargin()
Gets the size of the bottom margin in points.
Returns: double - The size of the bottom margin in points.
getLeftMargin()
public final double getLeftMargin()
Gets the size of the left margin in points.
Returns: double - The size of the left margin in points.
isVisible()
public final boolean isVisible()
Gets a value indicating whether the page is visible in UI.
Returns: boolean - The value indicating whether the page is visible in UI. True if the page is visible; otherwise, false.
setVisible(boolean value)
public final void setVisible(boolean value)
Sets a value indicating whether the page is visible in UI.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | The value indicating whether the page is visible in UI. True if the page is visible; otherwise, false. |
getName()
public final String getName()
Gets the name of this DiagramPage .
Returns: java.lang.String - The name of this DiagramPage .
getAsposeDiagramPage()
public final Page getAsposeDiagramPage()
Returns: com.aspose.diagram.Page
getContent()
public final DiagramContent getContent()
Returns: DiagramContent
getPageToDrawingScale()
public final double getPageToDrawingScale()
Returns: double
addWatermark(Watermark watermark, DiagramShapeSettings shapeSettings)
public final void addWatermark(Watermark watermark, DiagramShapeSettings shapeSettings)
Parameters:
Parameter | Type | Description |
---|---|---|
watermark | Watermark | |
shapeSettings | DiagramShapeSettings |
convertValueFromDrawingScaleToPageScale(DoubleValue value)
public final double convertValueFromDrawingScaleToPageScale(DoubleValue value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | com.aspose.diagram.DoubleValue |
Returns: double