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.

Result: TextFrame


getAutoShapeLock

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

Result: AutoShapeLock


getShapeLock

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

Result: AutoShapeLock


getTextFrame

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

Result: 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.

Result: 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.

Result: 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.