IAutoShape

All Implemented Interfaces: com.aspose.slides.IGeometryShape

public interface IAutoShape extends IGeometryShape

Represents an AutoShape.

Methods

MethodDescription
getAutoShapeLock()Returns AutoShape’s locks.
getTextFrame()Returns TextFrameEx object for the AutoShapeEx.
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 TextFrameEx 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 TextFrameEx object for the AutoShapeEx. 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:

ParameterTypeDescription
valueboolean

addTextFrame(String text)

public abstract ITextFrame addTextFrame(String text)

Adds a new TextFrameEx to a shape. If shape already has TextFrameEx then simply changes its text.

Parameters:

ParameterTypeDescription
textjava.lang.StringDefault 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