public class DiagramShape extends ShapeSearchAdapter implements IRotatableTwoDObject
Represents a drawing shape in a Visio document.
| Modifier and Type | Method and Description |
|---|---|
com.aspose.diagram.Shape |
getAsposeShape() |
FormattedTextFragmentCollection |
getFormattedTextFragments()
Gets the collection of formatted text fragments of this
. |
FormattedTextFragmentCollection |
getFormattedTextFragmentsForSearch() |
double |
getHeight()
Gets the height of this
in points. |
DiagramHyperlinkCollection |
getHyperlinks()
Gets the collection of hyperlinks attached to this
. |
long |
getId()
Gets the identifier of this
. |
DiagramWatermarkableImage |
getImage()
Gets the image of this
. |
WatermarkableImage |
getImageForSearch() |
String |
getName()
Gets the name of this
. |
DiagramPage |
getPage()
Gets the parent page of this
. |
Integer |
getPageNumber() |
double |
getRotateAngle()
Gets or sets the rotate angle of this
in degrees. |
String |
getText()
Gets or sets the text of this
. |
String |
getTextForSearch() |
double |
getWidth()
Gets the width of this
in points. |
double |
getX()
Gets the horizontal offset of this
from page left border in points. |
double |
getY()
Gets the vertical offset of this
from page bottom border in points. |
void |
setFoundWatermarkImage(byte[] imageData) |
void |
setFoundWatermarkText(String value) |
void |
setHeight(double value)
Sets the height of this
in points. |
void |
setImage(DiagramWatermarkableImage value)
Sets the image of this
. |
void |
setRotateAngle(double value)
Gets or sets the rotate angle of this
in degrees. |
void |
setText(String value)
Gets or sets the text of this
. |
void |
setWidth(double value)
Sets the width of this
in points. |
void |
setX(double value)
Sets the horizontal offset of this
from page left border in points. |
void |
setY(double value)
Sets the vertical offset of this
from page bottom border in points. |
public final com.aspose.diagram.Shape getAsposeShape()
public final FormattedTextFragmentCollection getFormattedTextFragments()
DiagramShape.DiagramShape.public FormattedTextFragmentCollection getFormattedTextFragmentsForSearch()
getFormattedTextFragmentsForSearch in class ShapeSearchAdapterpublic final double getHeight()
DiagramShape in points.getHeight in interface ITwoDObjectDiagramShape in points.public final DiagramHyperlinkCollection getHyperlinks()
DiagramShape.DiagramShape.public final long getId()
DiagramShape.DiagramShape.public final DiagramWatermarkableImage getImage()
DiagramShape.DiagramShape.public WatermarkableImage getImageForSearch()
getImageForSearch in class ShapeSearchAdapterpublic final String getName()
DiagramShape.DiagramShape.public final DiagramPage getPage()
DiagramShape.DiagramShape.public Integer getPageNumber()
getPageNumber in class ShapeSearchAdapterpublic final double getRotateAngle()
DiagramShape in degrees.getRotateAngle in interface IRotatableTwoDObjectDiagramShape in degrees.public final String getText()
DiagramShape.DiagramShape.public String getTextForSearch()
getTextForSearch in class ShapeSearchAdapterpublic final double getWidth()
DiagramShape in points.getWidth in interface ITwoDObjectDiagramShape in points.public final double getX()
DiagramShape from page left border in points.getX in interface ITwoDObjectDiagramShape from page left border in points.public final double getY()
DiagramShape from page bottom border in points.getY in interface ITwoDObjectDiagramShape from page bottom border in points.public void setFoundWatermarkImage(byte[] imageData)
setFoundWatermarkImage in class ShapeSearchAdapterpublic void setFoundWatermarkText(String value)
setFoundWatermarkText in class ShapeSearchAdapterpublic final void setHeight(double value)
DiagramShape in points.value - The height of this DiagramShape in points.public final void setImage(DiagramWatermarkableImage value)
DiagramShape.value - The image of this DiagramShape.public final void setRotateAngle(double value)
DiagramShape in degrees.value - The rotate angle of this DiagramShape in degrees.public final void setText(String value)
DiagramShape.value - The text of this DiagramShape.public final void setWidth(double value)
DiagramShape in points.value - The width of this DiagramShape in points.public final void setX(double value)
DiagramShape from page left border in points.value - The horizontal offset of this DiagramShape from page left border in points.public final void setY(double value)
DiagramShape from page bottom border in points.value - The vertical offset of this DiagramShape from page bottom border in points.Copyright © 2026. All rights reserved.