text(text)

Class: Text.

Description:

Sets new text to the shape. this will recreate the graphics of the shape for the new text.

Parameters:

Name Type Description

text

string

New text for the shape.

Returns:

If called without parameters, current text value is returned; otherwise this Text shape object is returned.

Type: string | Text