public class WordProcessingShape extends ShapeSearchAdapter implements IRotatableTwoDObject, IHyperlinkContainer
Represents a drawing shape in a Word document.
| Modifier and Type | Method and Description |
|---|---|
String |
getAlternativeText()
Gets the descriptive (alternative) text associated with this
. |
com.aspose.words.Shape |
getAsposeWordsShape() |
boolean |
getBehindText()
Gets a value indicating whether the shape is over or behind the text.
|
FormattedTextFragmentCollection |
getFormattedTextFragments()
Gets the collection of formatted text fragments of this
. |
FormattedTextFragmentCollection |
getFormattedTextFragmentsForSearch() |
WordProcessingHeaderFooter |
getHeaderFooter()
Gets the parent header/footer of this
(if presents). |
double |
getHeight()
Gets the height of this
in points. |
int |
getHorizontalAlignment()
Gets a value specifying how the shape is positioned horizontally.
|
String |
getHyperlink()
Gets the hyperlink associated with this
. |
WordProcessingWatermarkableImage |
getImage()
Gets the image of this
. |
WordProcessingImageFillFormat |
getImageFillFormat() |
WatermarkableImage |
getImageForSearch() |
String |
getName()
Gets the name of this
. |
int |
getRelativeHorizontalPosition()
Gets a value specifying to what the shape is positioned horizontally.
|
int |
getRelativeVerticalPosition()
Gets a value specifying to what the shape is positioned vertically.
|
double |
getRotateAngle()
Gets the rotate angle of this
in degrees. |
WordProcessingSection |
getSection()
Gets the parent section of this
. |
int |
getShapeType()
Gets the shape type.
|
String |
getText()
Gets the text of this
. |
String |
getTextForSearch() |
int |
getVerticalAlignment()
Gets a value specifying how the shape is positioned vertically.
|
double |
getWidth()
Gets the width of this
in points. |
double |
getX()
Gets or sets the horizontal offset of this
from page left border in points. |
double |
getY()
Gets the vertical offset of this
from page top border in points. |
boolean |
isWordArt()
Gets a value indicating whether this
is a WordArt object. |
void |
setAlternativeText(String value)
Sets the descriptive (alternative) text associated with this
. |
void |
setBehindText(boolean value)
Sets a value indicating whether the shape is over or behind the text.
|
void |
setFoundWatermarkImage(byte[] imageData) |
void |
setFoundWatermarkText(String value) |
void |
setHeight(double value)
Sets the height of this
in points. |
void |
setHyperlink(String value)
Sets the hyperlink associated with this
. |
void |
setImage(WordProcessingWatermarkableImage value)
Sets the image of this
. |
void |
setRotateAngle(double value)
Sets the rotate angle of this
in degrees. |
void |
setText(String value)
Sets the text of this
. |
void |
setWidth(double value)
Sets the width of this
in points. |
void |
setX(double value)
Gets or sets the horizontal offset of this
from page left border in points. |
void |
setY(double value)
Sets the vertical offset of this
from page top border in points. |
getPageNumberpublic final String getAlternativeText()
WordProcessingShape.WordProcessingShape.public final com.aspose.words.Shape getAsposeWordsShape()
public final boolean getBehindText()
Gets a value indicating whether the shape is over or behind the text.
public final FormattedTextFragmentCollection getFormattedTextFragments()
WordProcessingShape.WordProcessingShape.public FormattedTextFragmentCollection getFormattedTextFragmentsForSearch()
getFormattedTextFragmentsForSearch in class ShapeSearchAdapterpublic final WordProcessingHeaderFooter getHeaderFooter()
WordProcessingShape (if presents).WordProcessingShape.public final double getHeight()
WordProcessingShape in points.getHeight in interface ITwoDObjectWordProcessingShape in points.public final int getHorizontalAlignment()
Gets a value specifying how the shape is positioned horizontally.
public final String getHyperlink()
WordProcessingShape.getHyperlink in interface IHyperlinkContainerWordProcessingShape.public final WordProcessingWatermarkableImage getImage()
WordProcessingShape.WordProcessingShape or null if the shape has no image.public final WordProcessingImageFillFormat getImageFillFormat()
public WatermarkableImage getImageForSearch()
getImageForSearch in class ShapeSearchAdapterpublic final String getName()
WordProcessingShape.WordProcessingShape.public final int getRelativeHorizontalPosition()
Gets a value specifying to what the shape is positioned horizontally.
public final int getRelativeVerticalPosition()
Gets a value specifying to what the shape is positioned vertically.
public final double getRotateAngle()
WordProcessingShape in degrees.getRotateAngle in interface IRotatableTwoDObjectWordProcessingShape in degrees.public final WordProcessingSection getSection()
WordProcessingShape.WordProcessingShape.public final int getShapeType()
Gets the shape type.
public final String getText()
WordProcessingShape.WordProcessingShape.public String getTextForSearch()
getTextForSearch in class ShapeSearchAdapterpublic final int getVerticalAlignment()
Gets a value specifying how the shape is positioned vertically.
public final double getWidth()
WordProcessingShape in points.getWidth in interface ITwoDObjectWordProcessingShape in points.public final double getX()
WordProcessingShape from page left border in points.getX in interface ITwoDObjectWordProcessingShape.public final double getY()
WordProcessingShape from page top border in points.getY in interface ITwoDObjectWordProcessingShape.public final boolean isWordArt()
WordProcessingShape is a WordArt object.public final void setAlternativeText(String value)
WordProcessingShape.value - The descriptive (alternative) text associated with this WordProcessingShape.public final void setBehindText(boolean value)
Sets a value indicating whether the shape is over or behind the text.
value - The value indicating whether the shape is over or behind the text.
True if the shape is behind the text; otherwise, false.public void setFoundWatermarkImage(byte[] imageData)
setFoundWatermarkImage in class ShapeSearchAdapterpublic void setFoundWatermarkText(String value)
setFoundWatermarkText in class ShapeSearchAdapterpublic final void setHeight(double value)
WordProcessingShape in points.value - The height of this WordProcessingShape in points.public final void setHyperlink(String value)
WordProcessingShape.setHyperlink in interface IHyperlinkContainervalue - The hyperlink associated with this WordProcessingShape.public final void setImage(WordProcessingWatermarkableImage value)
WordProcessingShape.value - The image of this WordProcessingShape or null if the image should be removed.public final void setRotateAngle(double value)
WordProcessingShape in degrees.value - The rotate angle of this WordProcessingShape in degrees.public final void setText(String value)
WordProcessingShape.value - The text of this WordProcessingShape.public final void setWidth(double value)
WordProcessingShape in points.value - The width of this WordProcessingShape in points.public final void setX(double value)
WordProcessingShape from page left border in points.value - The x-coordinate of this WordProcessingShape.public final void setY(double value)
WordProcessingShape from page top border in points.value - The y-coordinate of this WordProcessingShape.Copyright © 2026. All rights reserved.