public class DiagramShape extends ShapeSearchAdapter implements IRotatableTwoDObject
Represents a drawing shape in a Visio document.
Modifier and Type | Method and Description |
---|---|
FormattedTextFragmentCollection |
getFormattedTextFragments()
Gets the collection of formatted text fragments of this
. |
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
. |
String |
getName()
Gets the name of this
. |
DiagramPage |
getPage()
Gets the parent page of this
. |
double |
getRotateAngle()
Gets or sets the rotate angle of this
in degrees. |
String |
getText()
Gets or sets the text of this
. |
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 |
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 DiagramPage getPage()
DiagramShape
.DiagramShape
.public final double getWidth()
DiagramShape
in points.getWidth
in interface ITwoDObject
DiagramShape
in points.public final void setWidth(double value)
DiagramShape
in points.value
- The width of this DiagramShape
in points.public final double getHeight()
DiagramShape
in points.getHeight
in interface ITwoDObject
DiagramShape
in points.public final void setHeight(double value)
DiagramShape
in points.value
- The height of this DiagramShape
in points.public final double getX()
DiagramShape
from page left border in points.getX
in interface ITwoDObject
DiagramShape
from page left border 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 double getY()
DiagramShape
from page bottom border in points.getY
in interface ITwoDObject
DiagramShape
from page bottom 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.public final double getRotateAngle()
DiagramShape
in degrees.getRotateAngle
in interface IRotatableTwoDObject
DiagramShape
in degrees.public final void setRotateAngle(double value)
DiagramShape
in degrees.value
- The rotate angle of this DiagramShape
in degrees.public final String getText()
DiagramShape
.DiagramShape
.public final void setText(String value)
DiagramShape
.value
- The text of this DiagramShape
.public final FormattedTextFragmentCollection getFormattedTextFragments()
DiagramShape
.DiagramShape
.public final DiagramWatermarkableImage getImage()
DiagramShape
.DiagramShape
.public final void setImage(DiagramWatermarkableImage value)
DiagramShape
.value
- The image of this DiagramShape
.public final long getId()
DiagramShape
.DiagramShape
.public final String getName()
DiagramShape
.DiagramShape
.public final DiagramHyperlinkCollection getHyperlinks()
DiagramShape
.DiagramShape
.