autofitType property

String? autofitType
getter/setter pair

The autofit type of the shape.

If the autofit type is AUTOFIT_TYPE_UNSPECIFIED, the autofit type is inherited from a parent placeholder if it exists. The field is automatically set to NONE if a request is made that might affect text fitting within its bounding text box. In this case the font_scale is applied to the font_size and the line_spacing_reduction is applied to the line_spacing. Both properties are also reset to default values. Possible string values are:

  • "AUTOFIT_TYPE_UNSPECIFIED" : The autofit type is unspecified.
  • "NONE" : Do not autofit.
  • "TEXT_AUTOFIT" : Shrink text on overflow to fit the shape.
  • "SHAPE_AUTOFIT" : Resize the shape to fit the text.

Implementation

core.String? autofitType;