AutoShape

Inheritance: java.lang.Object, com.aspose.slides.Shape, com.aspose.slides.GeometryShape

All Implemented Interfaces: com.aspose.slides.IAutoShape

public class AutoShape extends GeometryShape implements IAutoShape

Represents an AutoShape.

Methods

Method Description
getShapeLock() Returns shape’s locks.
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.

getShapeLock()

public final IAutoShapeLock getShapeLock()

Returns shape’s locks. Read-only IAutoShapeLock.

Returns: IAutoShapeLock

getAutoShapeLock()

public final IAutoShapeLock getAutoShapeLock()

Returns autoshape’s locks. Read-only IAutoShapeLock.

Returns: IAutoShapeLock

getTextFrame()

public final ITextFrame getTextFrame()

Returns TextFrame object for the AutoShape. Read-only ITextFrame.

Returns: ITextFrame

getUseBackgroundFill()

public final 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 final 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 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

isTextBox()

public final 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