Class Autofit
The autofit properties of a Shape.
Implements
Inherited Members
Namespace: Google.Apis.Slides.v1.Data
Assembly: Google.Apis.Slides.v1.dll
Syntax
public class Autofit : IDirectResponseSchema
Properties
AutofitType
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.
Declaration
[JsonProperty("autofitType")]
public virtual string AutofitType { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
FontScale
The font scale applied to the shape. For shapes with autofit_type NONE or SHAPE_AUTOFIT, this value is the default value of 1. For TEXT_AUTOFIT, this value multiplied by the font_size gives the font size that is rendered in the editor. This property is read-only.
Declaration
[JsonProperty("fontScale")]
public virtual float? FontScale { get; set; }
Property Value
Type | Description |
---|---|
float? |
LineSpacingReduction
The line spacing reduction applied to the shape. For shapes with autofit_type NONE or SHAPE_AUTOFIT, this value is the default value of 0. For TEXT_AUTOFIT, this value subtracted from the line_spacing gives the line spacing that is rendered in the editor. This property is read-only.
Declaration
[JsonProperty("lineSpacingReduction")]
public virtual float? LineSpacingReduction { get; set; }
Property Value
Type | Description |
---|---|
float? |