DiagramPage
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.watermark.contents.ContentPart
public class DiagramPage extends ContentPart
Represents a Visio document page.
| Method | Description |
|---|---|
| getPageNumber() | |
| 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) |
public Integer getPageNumber()
Returns: java.lang.Integer
public final DiagramShapeCollection getShapes()
Gets the collection of all shapes of the page.
Returns: DiagramShapeCollection - The collection of all shapes of the page.
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.
public final DiagramPage getBackgroundPage()
Gets the background page for this .
Returns: DiagramPage - The background page for this .
public final double getWidth()
Gets the width of this in points.
Returns: double - The width of this in points.
public final double getHeight()
Gets the height of this in points.
Returns: double - The height of this in points.
public final double getTopMargin()
Gets the size of the top margin in points.
Returns: double - The size of the top margin in points.
public final double getRightMargin()
Gets the size of the right margin in points.
Returns: double - The size of the right margin in points.
public final double getBottomMargin()
Gets the size of the bottom margin in points.
Returns: double - The size of the bottom margin in points.
public final double getLeftMargin()
Gets the size of the left margin in points.
Returns: double - The size of the left margin in points.
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.
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. |
public final String getName()
Gets the name of this DiagramPage .
Returns: java.lang.String - The name of this DiagramPage .
public final Page getAsposeDiagramPage()
Returns: com.aspose.diagram.Page
public final DiagramContent getContent()
Returns: DiagramContent
public final double getPageToDrawingScale()
Returns: double
public final void addWatermark(Watermark watermark, DiagramShapeSettings shapeSettings)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| watermark | Watermark | |
| shapeSettings | DiagramShapeSettings |
public final double convertValueFromDrawingScaleToPageScale(DoubleValue value)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | com.aspose.diagram.DoubleValue |
Returns: double
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.