IAutoShape
All Implemented Interfaces: com.aspose.slides.IGeometryShape
public interface IAutoShape extends IGeometryShape
Represents an AutoShape.
Methods
Method | Description |
---|---|
getAutoShapeLock() | Returns AutoShape’s locks. |
getTextFrame() | Returns TextFrame object for the AutoShape. |
getUseBackgroundFill() | Determines whether this autoshape should be filled with slide’s background fill instead of specified by style or fill format. |
setUseBackgroundFill(boolean value) | Determines whether this autoshape should be filled with slide’s background fill instead of specified by style or fill format. |
addTextFrame(String text) | Adds a new TextFrame to a shape. |
isTextBox() | Specifies if the shape is a text box. |
getAutoShapeLock()
public abstract IAutoShapeLock getAutoShapeLock()
Returns AutoShape’s locks. Read-only IAutoShapeLock.
Returns: IAutoShapeLock
getTextFrame()
public abstract ITextFrame getTextFrame()
Returns TextFrame object for the AutoShape. Read-only ITextFrame.
Returns: ITextFrame
getUseBackgroundFill()
public abstract boolean getUseBackgroundFill()
Determines whether this autoshape should be filled with slide’s background fill instead of specified by style or fill format. Read/write boolean.
Returns: boolean
setUseBackgroundFill(boolean value)
public abstract void setUseBackgroundFill(boolean value)
Determines whether this autoshape should be filled with slide’s background fill instead of specified by style or fill format. Read/write boolean.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
addTextFrame(String text)
public abstract ITextFrame addTextFrame(String text)
Adds a new TextFrame to a shape. If shape already has TextFrame then simply changes its text.
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Default text for a new TextFrame. |
Returns: ITextFrame - New ITextFrame object.
isTextBox()
public abstract boolean isTextBox()
Specifies if the shape is a text box.
If shape is not specified to be a text box does not mean that it cannot have text attached to it. A text box is merely a specialized shape with specific properties.
Returns: boolean