AutoShape

AutoShape class

Represents an AutoShape.

addTextFrame

NameDescription
addTextFrame(String)Adds a new TextFrame to a shape. If shape already has TextFrame then simply changes its text.

Parameters:

NameTypeDescription
textStringDefault text for a new TextFrame.

Returns: TextFrame


getAutoShapeLock

NameDescription
getAutoShapeLock()Returns autoshape’s locks. Read-only IAutoShapeLock.

Returns: AutoShapeLock


getShapeLock

NameDescription
getShapeLock()Returns shape’s locks. Read-only IAutoShapeLock.

Returns: AutoShapeLock


getTextFrame

NameDescription
getTextFrame()Returns TextFrame object for the AutoShape. Read-only ITextFrame.

Returns: TextFrame


getUseBackgroundFill

NameDescription
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


isTextBox

NameDescription
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


setUseBackgroundFill

NameDescription
setUseBackgroundFill(boolean)Determines whether this autoshape should be filled with slide’s background fill instead of specified by style or fill format. Read/write boolean.