Slides Service

  • The Google Slides service for Apps Script enables creation, access, and modification of presentations through various classes and methods.

  • Key classes like PageElement and Shape provide extensive methods for manipulating visual elements such as position, size, rotation, and ordering.

  • Classes like TextRange and TextStyle offer detailed control over text content and appearance within shapes and tables.

  • Specialized classes like Image , Line , Table , Video , and WordArt provide methods specific to interacting with those particular element types.

  • The SlidesApp class acts as the main entry point, allowing creation and opening of presentations and providing access to various enumerations and builder classes.

Slides

This service allows scripts to create, access, and modify Google Slides files. See also the Google Slides documentation for more details on the underlying features of the Slides service.

Classes

Name Brief description
Affine Transform A 3x3 matrix used to transform source coordinates (x1, y1) into destination coordinates (x2, y2) according to matrix multiplication:
[ x2 ]   [ scaleX shearX translateX ] [ x1 ]
[ y2 ] = [ shearY scaleY translateY ] [ y1 ]
[ 1  ]   [   0      0        1      ] [ 1  ]
Affine Transform Builder A builder for Affine Transform objects.
Alignment Position The alignment position to apply.
Arrow Style The kinds of start and end forms with which linear geometry can be rendered.
Auto Text An element of text that is dynamically replaced with content that can change over time, such as a slide number.
Auto Text Type The types of auto text.
Autofit Describes the autofit settings of a shape.
Autofit Type The autofit types.
Border Describes the border around an element.
Cell Merge State The table cell merge states.
Color An opaque color
Color Scheme A color scheme defines a mapping from members of Theme Color Type to the actual colors used to render them.
Connection Site The connection site on a Page Element that can connect to a connector .
Content Alignment The content alignments for a Shape or Table Cell .
Dash Style The kinds of dashes with which linear geometry can be rendered.
Fill Describes the page element's background
Fill Type The kinds of fill.
Group A collection of Page Element s joined as a single unit.
Image A Page Element representing an image.
Layout A layout in a presentation.
Line A Page Element representing a line.
Line Category The line category.
Line Fill Describes the fill of a line or outline
Line Fill Type The kinds of line fill.
Line Type The line types.
Link A hypertext link.
Link Type The types of a Link .
List A list in the text.
List Preset Preset patterns of glyphs for lists in text.
List Style The list styling for a range of text.
Master A master in a presentation.
Notes Master A notes master in a presentation.
Notes Page A notes page in a presentation.
Page A page in a presentation.
Page Background Describes the page's background
Page Background Type The kinds of page backgrounds.
Page Element A visual element rendered on a page.
Page Element Range A collection of one or more Page Element instances.
Page Element Type The page element type.
Page Range A collection of one or more Page instances.
Page Type The page types.
Paragraph A segment of text terminated by a newline character.
Paragraph Alignment The types of text alignment for a paragraph.
Paragraph Style The styles of text that apply to entire paragraphs.
Picture Fill A fill that renders an image that's stretched to the dimensions of its container.
Placeholder Type The placeholder types.
Point A point representing a location.
Predefined Layout Predefined layouts.
Presentation A presentation.
Selection The user's selection in the active presentation.
Selection Type Type of Selection .
Shape A Page Element representing a generic shape that does not have a more specific classification.
Shape Type The shape types.
Sheets Chart A Page Element representing a linked chart embedded from Google Sheets.
Sheets Chart Embed Type The Sheets chart's embed type.
Slide A slide in a presentation.
Slide Linking Mode The mode of links between slides.
Slide Position The relative position of a Slide .
Slides App Creates and opens Presentations that can be edited.
Solid Fill A solid color fill.
Spacing Mode The different modes for paragraph spacing.
Speaker Spotlight A Page Element representing a speaker spotlight.
Table A Page Element representing a table.
Table Cell A cell in a table.
Table Cell Range A collection of one or more Table Cell instances.
Table Column A column in a table.
Table Row A row in a table.
Text Baseline Offset The text vertical offset from its normal position.
Text Direction The directions text can flow in.
Text Range A segment of the text contents of a Shape or a Table Cell .
Text Style The style of text.
Theme Color A color that refers to an entry in the page's Color Scheme .
Theme Color Type The name of an entry in the page's color scheme.
Video A Page Element representing a video.
Video Source Type The video source types.
Word Art A Page Element representing word art.

AffineTransform

Methods

Method Return type Brief description
Number Gets the X coordinate scaling element.
Number Gets the Y coordinate scaling element.
Number Gets the X coordinate shearing element.
Number Gets the Y coordinate shearing element.
Number Gets the X coordinate translation element in points.
Number Gets the Y coordinate translation element in points.
Affine Transform Builder Returns a new Affine Transform Builder based on this transform.

AffineTransformBuilder

Methods

Method Return type Brief description
Affine Transform Creates an Affine Transform object initialized with the elements set in the builder.
Affine Transform Builder Sets the X coordinate scaling element and returns the builder.
Affine Transform Builder Sets the Y coordinate scaling element and returns the builder.
Affine Transform Builder Sets the X coordinate shearing element and returns the builder.
Affine Transform Builder Sets the Y coordinate shearing element and returns the builder.
Affine Transform Builder Sets the X coordinate translation element in points, and returns the builder.
Affine Transform Builder Sets the Y coordinate translation element in points, and returns the builder.

AlignmentPosition

Properties

Property Type Description
CENTER
Enum Align to the center.
HORIZONTAL_CENTER
Enum Align to the horizontal center.
VERTICAL_CENTER
Enum Align to the vertical center.

ArrowStyle

Properties

Property Type Description
UNSUPPORTED
Enum An arrow style that is not supported.
NONE
Enum No arrow.
STEALTH_ARROW
Enum Arrow with notched back.
FILL_ARROW
Enum Filled arrow.
FILL_CIRCLE
Enum Filled circle.
FILL_SQUARE
Enum Filled square.
FILL_DIAMOND
Enum Filled diamond.
OPEN_ARROW
Enum Hollow arrow.
OPEN_CIRCLE
Enum Hollow circle.
OPEN_SQUARE
Enum Hollow square.
OPEN_DIAMOND
Enum Hollow diamond.

AutoText

Methods

Method Return type Brief description
Auto Text Type |null Returns the type of auto text.
Integer|null Returns the index of the auto text.
Text Range |null Returns a Text Range spanning the auto text.

AutoTextType

Properties

Property Type Description
UNSUPPORTED
Enum An auto text type that is not supported.
SLIDE_NUMBER
Enum A slide number.

Autofit

Methods

Method Return type Brief description
Autofit Sets the Autofit Type of a shape to Autofit Type.NONE .
Autofit Type Gets the Autofit Type of the shape.
Number Gets the font scale applied to the shape.
Number Gets the line spacing reduction applied to the shape.

AutofitType

Properties

Property Type Description
UNSUPPORTED
Enum An autofit type that is not supported.
NONE
Enum Autofit isn't applied.
TEXT_AUTOFIT
Enum Shrinks the text on overflow.
SHAPE_AUTOFIT
Enum Resizes the shape to fit the text.

Border

Methods

Method Return type Brief description
Dash Style |null Gets the Dash Style of the border.
Line Fill Gets the Line Fill of the border.
Number|null Gets the thickness of the border in points.
Boolean Gets whether the border is visible or not.
Border Sets the Dash Style of the border.
Border Sets the border to be transparent.
Border Sets the thickness of the border in points.

CellMergeState

Properties

Property Type Description
NORMAL
Enum The cell is not merged.
HEAD
Enum The cell is merged and it is the head (for example, upper left) cell within the merged set of cells.
MERGED
Enum The cell is merged but is not the head (for example, upper left) cell.

Color

Methods

Method Return type Brief description
Rgb Color Converts this color to an Rgb Color .
Theme Color Converts this color to a Theme Color .
Color Type Get the type of this color.

ColorScheme

Methods

Method Return type Brief description
Color Returns the concrete Color associated with the Theme Color Type in this color scheme.
Theme Color Type[] Returns a list of all possible theme color types in a color scheme.
Color Scheme Sets the concrete color associated with the Theme Color Type in this color scheme to the given color.
Color Scheme Sets the concrete color associated with the Theme Color Type in this color scheme to the given color in RGB format.
Color Scheme Sets the concrete color associated with the Theme Color Type in this color scheme to the given color in HEX format.

ConnectionSite

Methods

Method Return type Brief description
Integer Returns the index of the connection site.
Page Element Returns the Page Element that the connection site is on.

ContentAlignment

Properties

Property Type Description
UNSUPPORTED
Enum A content alignment that is not supported.
TOP
Enum Aligns the content to the top of the content holder.
MIDDLE
Enum Aligns the content to the middle of the content holder.
BOTTOM
Enum Aligns the content to the bottom of the content holder.

DashStyle

Properties

Property Type Description
UNSUPPORTED
Enum A dash style that is not supported.
SOLID
Enum Solid line.
DOT
Enum Dotted line.
DASH
Enum Dashed line.
DASH_DOT
Enum Alternating dashes and dots.
LONG_DASH
Enum Line with large dashes.
LONG_DASH_DOT
Enum Alternating large dashes and dots.

Fill

Methods

Method Return type Brief description
Solid Fill |null Get the solid fill of this background, or null if the fill type is not Fill Type.SOLID .
Fill Type Get the type of this fill.
Boolean Whether the background is visible.
void Sets the solid fill to the given Color .
void Sets the solid fill to the given alpha and Color .
void Sets the solid fill to the given RGB values.
void Sets the solid fill to the given alpha and RGB values.
void Sets the solid fill to the given hex color string.
void Sets the solid fill to the given alpha and hex color string.
void Sets the solid fill to the given Theme Color Type .
void Sets the solid fill to the given alpha and Theme Color Type .
void Sets the background to transparent.

FillType

Properties

Property Type Description
UNSUPPORTED
Enum A fill type that is not supported.
NONE
Enum No fill, so the background is transparent.
SOLID
Enum A solid color fill.

Group

Methods

Method Return type Brief description
Group Aligns the element to the specified alignment position on the page.
Group Brings the page element forward on the page by one element.
Group Brings the page element to the front of the page.
Page Element Duplicates the page element.
Page Element[] Gets the collection of page elements in the group.
Connection Site[] Returns the list of Connection Site s on the page element, or an empty list if the page element does not have any connection sites.
String Returns the page element's alt text description.
Number|null Gets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Number|null Returns the element's inherent height in points.
Number|null Returns the element's inherent width in points.
Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
String Returns the unique ID for this object.
Page Element Type Returns the page element's type, represented as a Page Element Type enum.
Group |null Returns the group this page element belongs to, or null if the element is not in a group.
Page Returns the page this page element is on.
Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
String Returns the page element's alt text title.
Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Affine Transform Gets the page element's transform.
Number|null Returns the element's width in points, which is the width of the element's bounding box when the element has no rotation.
Group Preconcatenates the provided transform to the existing transform of the page element.
void Removes the page element.
Group Scales the element's height by the specified ratio.
Group Scales the element's width by the specified ratio.
void Selects only the Page Element in the active presentation and removes any previous selection.
void Selects the Page Element in the active presentation.
Group Sends the page element backward on the page by one element.
Group Sends the page element to the back of the page.
Group Sets the page element's alt text description.
Group Sets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Group Sets the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Group Sets the element's clockwise rotation angle around its center in degrees.
Group Sets the page element's alt text title.
Group Sets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Group Sets the transform of the page element with the provided transform.
Group Sets the element's width in points, which is the width of the element's bounding box when the element has no rotation.
void Ungroups the elements of the group.

Image

Methods

Method Return type Brief description
Image Aligns the element to the specified alignment position on the page.
Image Brings the page element forward on the page by one element.
Image Brings the page element to the front of the page.
Page Element Duplicates the page element.
Blob Return the data inside this object as a blob converted to the specified content type.
Blob Return the data inside this image as a blob.
Border Returns the Border of the image.
Connection Site[] Returns the list of Connection Site s on the page element, or an empty list if the page element does not have any connection sites.
String Gets a URL to the image.
String Returns the page element's alt text description.
Number|null Gets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Number|null Returns the element's inherent height in points.
Number|null Returns the element's inherent width in points.
Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Link |null Returns the Link or null if there is no link.
String Returns the unique ID for this object.
Page Element Type Returns the page element's type, represented as a Page Element Type enum.
Group |null Returns the group this page element belongs to, or null if the element is not in a group.
Page Returns the page this page element is on.
Page Element |null Returns the parent page element of the placeholder.
Integer|null Returns the index of the placeholder image.
Placeholder Type Returns the placeholder type of the image, or Placeholder Type.NONE if the shape is not a placeholder.
Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
String|null Gets the image's source URL, if available.
String Returns the page element's alt text title.
Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Affine Transform Returns the page element's transform.
Number|null Returns the element's width in points, which is the width of the element's bounding box when the element has no rotation.
Image Preconcatenates the provided transform to the existing transform of the page element.
void Removes the page element.
void Removes a Link .
Image Replaces this image with an image described by a Blob Source object.
Image Replaces this image with an image described by a Image object, optionally cropping the image to fit.
Image Replaces this image with another image downloaded from the provided URL.
Image Replaces this image with another image downloaded from the provided URL, optionally cropping the image to fit.
Image Scales the element's height by the specified ratio.
Image Scales the element's width by the specified ratio.
void Selects only the Page Element in the active presentation and removes any previous selection.
void Selects the Page Element in the active presentation.
Image Sends the page element backward on the page by one element.
Image Sends the page element to the back of the page.
Image Sets the page element's alt text description.
Image Sets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Image Sets the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Link Sets a Link to the given Slide using the zero-based index of the slide.
Link Sets a Link to the given Slide , the link is set by the given slide ID.
Link Sets a Link to the given Slide using the relative position of the slide.
Link Sets a Link to the given non-empty URL string.
Image Sets the element's clockwise rotation angle around its center in degrees.
Image Sets the page element's alt text title.
Image Sets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Image Sets the transform of the page element with the provided transform.
Image Sets the element's width in points, which is the width of the element's bounding box when the element has no rotation.

Layout

Methods

Method Return type Brief description
Page Background Gets the page's background.
Color Scheme Gets the Color Scheme associated with the page.
Group[] Returns the list of Group objects on the page.
Image[] Returns the list of Image objects on the page.
String Gets the name of the layout.
Line[] Returns the list of Line objects on the page.
Master Gets the master that the layout is based on.
String Gets the unique ID for the page.
Page Element |null Returns the Page Element on the page with the given ID, or null if none exists.
Page Element[] Returns the list of Page Element objects rendered on the page.
Page Type Gets the type of the page.
Page Element |null Returns the placeholder Page Element object for a specified Placeholder Type or null if a matching placeholder is not present.
Page Element |null Returns the placeholder Page Element object for a specified Placeholder Type and a placeholder index, or null if the placeholder is not present.
Page Element[] Returns the list of placeholder Page Element objects in the page.
Shape[] Returns the list of Shape objects on the page.
Sheets Chart[] Returns the list of Sheets Chart objects on the page.
Table[] Returns the list of Table objects on the page.
Video[] Returns the list of Video objects on the page.
Word Art[] Returns the list of Word Art objects on the page.
Group Groups all the specified page elements.
Group Inserts a copy of the provided Group on the page.
Image Inserts an image at the top left corner of the page with a default size from the specified image blob.
Image Inserts an image on the page with the provided position and size from the specified image blob.
Image Inserts a copy of the provided Image on the page.
Image Inserts an image at the top left corner of the page with a default size from the provided URL.
Image Inserts an image on the page with the provided position and size from the provided URL.
Line Inserts a copy of the provided Line on the page.
Line Inserts a line on the page connecting two connection sites .
Line Inserts a line on the page.
Page Element Inserts a copy of the provided Page Element on the page.
Shape Inserts a copy of the provided Shape on the page.
Shape Inserts a shape on the page.
Shape Inserts a shape on the page.
Sheets Chart Inserts a Google Sheets chart on the page.
Sheets Chart Inserts a Google Sheets chart on the page with the provided position and size.
Sheets Chart Inserts a copy of the provided Sheets Chart on the page.
Image Inserts a Google Sheets chart as an Image on the page.
Image Inserts a Google Sheets chart as an Image on the page with the provided position and size.
Table Inserts a table on the page.
Table Inserts a table on the page with the provided position and size.
Table Inserts a copy of the provided Table on the page.
Shape Inserts a text box Shape containing the provided string on the page.
Shape Inserts a text box Shape containing the provided string on the page.
Video Inserts a video at the top left corner of the page with a default size.
Video Inserts a video on the page with the provided position and size.
Video Inserts a copy of the provided Video on the page.
Word Art Inserts a copy of the provided Word Art on the page.
void Removes the page.
Integer Replaces all instances of text matching find text with replace text.
Integer Replaces all instances of text matching find text with replace text.
void Selects the Page in the active presentation as the current page selection and removes any previous selection.

Line

Methods

Method Return type Brief description
Line Aligns the element to the specified alignment position on the page.
Line Brings the page element forward on the page by one element.
Line Brings the page element to the front of the page.
Page Element Duplicates the page element.
Connection Site[] Returns the list of Connection Site s on the page element, or an empty list if the page element does not have any connection sites.
Dash Style Gets the Dash Style of the line.
String Returns the page element's alt text description.
Point Returns the end point of the line, measured from the upper-left corner of the page.
Arrow Style Gets the Arrow Style of the arrow at the end of the line.
Connection Site |null Returns the connection at the end of the line, or null if there is no connection.
Number|null Gets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Number|null Returns the element's inherent height in points.
Number|null Returns the element's inherent width in points.
Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Line Category Gets the Line Category of the line.
Line Fill Gets the Line Fill of the line.
Line Type Gets the Line Type of the line.
Link |null Returns the Link or null if there is no link.
String Returns the unique ID for this object.
Page Element Type Returns the page element's type, represented as a Page Element Type enum.
Group |null Returns the group this page element belongs to, or null if the element is not in a group.
Page Returns the page this page element is on.
Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
Point Returns the start point of the line, measured from the upper-left corner of the page.
Arrow Style Gets the Arrow Style of the arrow at the beginning of the line.
Connection Site |null Returns the connection at the beginning of the line, or null if there is no connection.
String Returns the page element's alt text title.
Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Affine Transform Returns the page element's transform.
Number Returns the thickness of the line in points.
Number|null Returns the element's width in points, which is the width of the element's bounding box when the element has no rotation.
Boolean Returns true if the line is a connector, or false if not.
Line Preconcatenates the provided transform to the existing transform of the page element.
void Removes the page element.
void Removes a Link .
Line Reroutes the start and end of the line to the closest two connection sites on the connected page elements.
Line Scales the element's height by the specified ratio.
Line Scales the element's width by the specified ratio.
void Selects only the Page Element in the active presentation and removes any previous selection.
void Selects the Page Element in the active presentation.
Line Sends the page element backward on the page by one element.
Line Sends the page element to the back of the page.
Line Sets the Dash Style of the line.
Line Sets the page element's alt text description.
Line Sets the position of the end point of the line.
Line Sets the position of the end point of the line.
Line Sets the Arrow Style of the arrow at the end of the line.
Line Sets the connection at the end of the line.
Line Sets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Line Sets the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Line Sets the Line Category of the line.
Link Sets a Link to the given Slide using the zero-based index of the slide.
Link Sets a Link to the given Slide , the link is set by the given slide ID.
Link Sets a Link to the given Slide using the relative position of the slide.
Link Sets a Link to the given non-empty URL string.
Line Sets the element's clockwise rotation angle around its center in degrees.
Line Sets the position of the start point of the line.
Line Sets the position of the start point of the line.
Line Sets the Arrow Style of the arrow at the beginning of the line.
Line Sets the connection at the beginning of the line.
Line Sets the page element's alt text title.
Line Sets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Line Sets the transform of the page element with the provided transform.
Line Sets the thickness of the line in points.
Line Sets the element's width in points, which is the width of the element's bounding box when the element has no rotation.

LineCategory

Properties

Property Type Description
UNSUPPORTED
Enum A line category that is not supported.
STRAIGHT
Enum Straight connectors, including straight connector 1.
BENT
Enum Bent connectors, including bent connector 2 to 5.
CURVED
Enum Curved connectors, including curved connector 2 to 5.

LineFill

Methods

Method Return type Brief description
Line Fill Type Gets the type of the line fill.
Solid Fill |null Gets the solid fill of the line, or null if the fill type is not Line Fill Type.SOLID .
void Sets the solid fill to the given Color .
void Sets the solid fill to the given alpha and Color .
void Sets the solid fill to the given RGB values.
void Sets the solid fill to the given alpha and RGB values.
void Sets the solid fill to the given hex color string.
void Sets the solid fill to the given alpha and hex color string.
void Sets the solid fill to the given Theme Color Type .
void Sets the solid fill to the given alpha and Theme Color Type .

LineFillType

Properties

Property Type Description
UNSUPPORTED
Enum A line fill type that is not supported.
NONE
Enum No fill, so the line or outline is transparent.
SOLID
Enum A solid color fill.

LineType

Properties

Property Type Description
UNSUPPORTED
Enum A line type that is not supported.
STRAIGHT_CONNECTOR_1
Enum Straight connector 1 form.
BENT_CONNECTOR_2
Enum Bent connector 2 form.
BENT_CONNECTOR_3
Enum Bent connector 3 form.
BENT_CONNECTOR_4
Enum Bent connector 4 form.
BENT_CONNECTOR_5
Enum Bent connector 5 form.
CURVED_CONNECTOR_2
Enum Curved connector 2 form.
CURVED_CONNECTOR_3
Enum Curved connector 3 form.
CURVED_CONNECTOR_4
Enum Curved connector 4 form.
CURVED_CONNECTOR_5
Enum Curved connector 5 form.
STRAIGHT_LINE
Enum Straight line.

Methods

Method Return type Brief description
Link Type Returns the Link Type .
Slide |null Returns the linked Slide for non-URL links types, if it exists.
String|null Returns the ID of the linked Slide or null if the Link Type is not Link Type.SLIDE_ID .
Integer|null Returns the zero-based index of the linked Slide or null if the Link Type is not Link Type.SLIDE_INDEX .
Slide Position |null Returns the Slide Position of the linked Slide or null if the Link Type is not Link Type.SLIDE_POSITION .
String|null Returns the URL to the external web page or null if the Link Type is not Link Type.URL .

LinkType

Properties

Property Type Description
UNSUPPORTED
Enum A link type that is not supported.
URL
Enum A link to an external web page.
SLIDE_POSITION
Enum A link to a specific slide in this presentation, addressed by its position.
SLIDE_ID
Enum A link to a specific slide in this presentation, addressed by its ID.
SLIDE_INDEX
Enum A link to a specific slide in this presentation, addressed by its zero-based index.

List

Methods

Method Return type Brief description
String Returns the ID of the list.
Paragraph[] Returns all the Paragraphs in the list.

ListPreset

Properties

Property Type Description
DISC_CIRCLE_SQUARE
Enum A list with a `DISC`, `CIRCLE` and `SQUARE` glyphs for the first 3 list nesting levels.
DIAMONDX_ARROW3D_SQUARE
Enum A list with a `DIAMONDX`, `ARROW3D` and `SQUARE` glyphs for the first 3 list nesting levels.
CHECKBOX
Enum A list with `CHECKBOX` glyphs for all list nesting levels.
ARROW_DIAMOND_DISC
Enum A list with a `ARROW`, `DIAMOND` and `DISC` glyphs for the first 3 list nesting levels.
STAR_CIRCLE_SQUARE
Enum A list with a `STAR`, `CIRCLE` and `SQUARE` glyphs for the first 3 list nesting levels.
ARROW3D_CIRCLE_SQUARE
Enum A list with a `ARROW3D`, `CIRCLE` and `SQUARE` glyphs for the first 3 list nesting levels.
LEFTTRIANGLE_DIAMOND_DISC
Enum A list with a `LEFTTRIANGLE`, `DIAMOND` and `DISC` glyphs for the first 3 list nesting levels.
DIAMONDX_HOLLOWDIAMOND_SQUARE
Enum A list with a `DIAMONDX`, `HOLLOWDIAMOND` and `SQUARE` glyphs for the first 3 list nesting levels.
DIAMOND_CIRCLE_SQUARE
Enum A list with a `DIAMOND`, `CIRCLE` and `SQUARE` glyphs for the first 3 list nesting levels.
DIGIT_ALPHA_ROMAN
Enum A list with `DIGIT`, `ALPHA` and `ROMAN` glyphs for the first 3 list nesting levels, followed by periods.
DIGIT_ALPHA_ROMAN_PARENS
Enum A list with `DIGIT`, `ALPHA` and `ROMAN` glyphs for the first 3 list nesting levels, followed by parenthesis.
DIGIT_NESTED
Enum A list with `DIGIT` glyphs separated by periods, where each nesting level uses the previous nesting level's glyph as a prefix.
UPPERALPHA_ALPHA_ROMAN
Enum A list with `UPPERALPHA`, `ALPHA` and `ROMAN` glyphs for the first 3 list nesting levels, followed by periods.
UPPERROMAN_UPPERALPHA_DIGIT
Enum A list with `UPPERROMAN`, `UPPERALPHA` and `DIGIT` glyphs for the first 3 list nesting levels, followed by periods.
ZERODIGIT_ALPHA_ROMAN
Enum A list with `ZERODIGIT`, `ALPHA` and `ROMAN` glyphs for the first 3 list nesting levels, followed by periods.

ListStyle

Methods

Method Return type Brief description
List Style Applies the specified List Preset to all of the paragraphs that overlap with the text.
String|null Returns the rendered glyph for the text.
List |null Returns the List the text is in, or null if none of the text is in a list, or part of the text is in a list, or the text is in multiple lists.
Integer|null Returns the 0-based nesting level of the text.
Boolean|null Returns true if the text is in exactly one list, false if none of the text is in a list, and null if only some of the text is in a list or if the text is in multiple lists.
List Style Removes the paragraphs that overlap with the text from any lists.

Master

Methods

Method Return type Brief description
Page Background Gets the page's background.
Color Scheme Gets the Color Scheme associated with the page.
Group[] Returns the list of Group objects on the page.
Image[] Returns the list of Image objects on the page.
Layout[] Gets this master's layouts.
Line[] Returns the list of Line objects on the page.
String Gets the unique ID for the page.
Page Element |null Returns the Page Element on the page with the given ID, or null if none exists.
Page Element[] Returns the list of Page Element objects rendered on the page.
Page Type Gets the type of the page.
Page Element |null Returns the placeholder Page Element object for a specified Placeholder Type or null if a matching placeholder is not present.
Page Element |null Returns the placeholder Page Element object for a specified Placeholder Type and a placeholder index, or null if the placeholder is not present.
Page Element[] Returns the list of placeholder Page Element objects in the page.
Shape[] Returns the list of Shape objects on the page.
Sheets Chart[] Returns the list of Sheets Chart objects on the page.
Table[] Returns the list of Table objects on the page.
Video[] Returns the list of Video objects on the page.
Word Art[] Returns the list of Word Art objects on the page.
Group Groups all the specified page elements.
Group Inserts a copy of the provided Group on the page.
Image Inserts an image at the top left corner of the page with a default size from the specified image blob.
Image Inserts an image on the page with the provided position and size from the specified image blob.
Image Inserts a copy of the provided Image on the page.
Image Inserts an image at the top left corner of the page with a default size from the provided URL.
Image Inserts an image on the page with the provided position and size from the provided URL.
Line Inserts a copy of the provided Line on the page.
Line Inserts a line on the page connecting two connection sites .
Line Inserts a line on the page.
Page Element Inserts a copy of the provided Page Element on the page.
Shape Inserts a copy of the provided Shape on the page.
Shape Inserts a shape on the page.
Shape Inserts a shape on the page.
Sheets Chart Inserts a Google Sheets chart on the page.
Sheets Chart Inserts a Google Sheets chart on the page with the provided position and size.
Sheets Chart Inserts a copy of the provided Sheets Chart on the page.
Image Inserts a Google Sheets chart as an Image on the page.
Image Inserts a Google Sheets chart as an Image on the page with the provided position and size.
Table Inserts a table on the page.
Table Inserts a table on the page with the provided position and size.
Table Inserts a copy of the provided Table on the page.
Shape Inserts a text box Shape containing the provided string on the page.
Shape Inserts a text box Shape containing the provided string on the page.
Video Inserts a video at the top left corner of the page with a default size.
Video Inserts a video on the page with the provided position and size.
Video Inserts a copy of the provided Video on the page.
Word Art Inserts a copy of the provided Word Art on the page.
void Removes the page.
Integer Replaces all instances of text matching find text with replace text.
Integer Replaces all instances of text matching find text with replace text.
void Selects the Page in the active presentation as the current page selection and removes any previous selection.

NotesMaster

Methods

Method Return type Brief description
Group[] Returns the list of Group objects on the page.
Image[] Returns the list of Image objects on the page.
Line[] Returns the list of Line objects on the page.
String Gets the unique ID for the page.
Page Element |null Returns the Page Element on the page with the given ID, or null if none exists.
Page Element[] Returns the list of Page Element objects rendered on the page.
Page Element |null Returns the placeholder Page Element object for a specified Placeholder Type or null if a matching placeholder is not present.
Page Element |null Returns the placeholder Page Element object for a specified Placeholder Type and a placeholder index, or null if the placeholder is not present.
Page Element[] Returns the list of placeholder Page Element objects in the page.
Shape[] Returns the list of Shape objects on the page.
Sheets Chart[] Returns the list of Sheets Chart objects on the page.
Table[] Returns the list of Table objects on the page.
Video[] Returns the list of Video objects on the page.
Word Art[] Returns the list of Word Art objects on the page.

NotesPage

Methods

Method Return type Brief description
Group[] Returns the list of Group objects on the page.
Image[] Returns the list of Image objects on the page.
Line[] Returns the list of Line objects on the page.
String Gets the unique ID for the page.
Page Element |null Returns the Page Element on the page with the given ID, or null if none exists.
Page Element[] Returns the list of Page Element objects rendered on the page.
Page Element |null Returns the placeholder Page Element object for a specified Placeholder Type or null if a matching placeholder is not present.
Page Element |null Returns the placeholder Page Element object for a specified Placeholder Type and a placeholder index, or null if the placeholder is not present.
Page Element[] Returns the list of placeholder Page Element objects in the page.
Shape[] Returns the list of Shape objects on the page.
Sheets Chart[] Returns the list of Sheets Chart objects on the page.
Shape Gets the shape containing the speaker notes on the page.
Table[] Returns the list of Table objects on the page.
Video[] Returns the list of Video objects on the page.
Word Art[] Returns the list of Word Art objects on the page.
Integer Replaces all instances of text matching find text with replace text.
Integer Replaces all instances of text matching find text with replace text.

Page

Methods

Method Return type Brief description
Layout Returns the page as a layout.
Master Returns the page as a master.
Slide Returns the page as a slide.
Page Background Gets the page's background.
Color Scheme Gets the Color Scheme associated with the page.
Group[] Returns the list of Group objects on the page.
Image[] Returns the list of Image objects on the page.
Line[] Returns the list of Line objects on the page.
String Gets the unique ID for the page.
Page Element |null Returns the Page Element on the page with the given ID, or null if none exists.
Page Element[] Returns the list of Page Element objects rendered on the page.
Page Type Gets the type of the page.
Page Element |null Returns the placeholder Page Element object for a specified Placeholder Type or null if a matching placeholder is not present.
Page Element |null Returns the placeholder Page Element object for a specified Placeholder Type and a placeholder index, or null if the placeholder is not present.
Page Element[] Returns the list of placeholder Page Element objects in the page.
Shape[] Returns the list of Shape objects on the page.
Sheets Chart[] Returns the list of Sheets Chart objects on the page.
Table[] Returns the list of Table objects on the page.
Video[] Returns the list of Video objects on the page.
Word Art[] Returns the list of Word Art objects on the page.
Group Groups all the specified page elements.
Group Inserts a copy of the provided Group on the page.
Image Inserts an image at the top left corner of the page with a default size from the specified image blob.
Image Inserts an image on the page with the provided position and size from the specified image blob.
Image Inserts a copy of the provided Image on the page.
Image Inserts an image at the top left corner of the page with a default size from the provided URL.
Image Inserts an image on the page with the provided position and size from the provided URL.
Line Inserts a copy of the provided Line on the page.
Line Inserts a line on the page connecting two connection sites .
Line Inserts a line on the page.
Page Element Inserts a copy of the provided Page Element on the page.
Shape Inserts a copy of the provided Shape on the page.
Shape Inserts a shape on the page.
Shape Inserts a shape on the page.
Sheets Chart Inserts a Google Sheets chart on the page.
Sheets Chart Inserts a Google Sheets chart on the page with the provided position and size.
Sheets Chart Inserts a copy of the provided Sheets Chart on the page.
Image Inserts a Google Sheets chart as an Image on the page.
Image Inserts a Google Sheets chart as an Image on the page with the provided position and size.
Table Inserts a table on the page.
Table Inserts a table on the page with the provided position and size.
Table Inserts a copy of the provided Table on the page.
Shape Inserts a text box Shape containing the provided string on the page.
Shape Inserts a text box Shape containing the provided string on the page.
Video Inserts a video at the top left corner of the page with a default size.
Video Inserts a video on the page with the provided position and size.
Video Inserts a copy of the provided Video on the page.
Word Art Inserts a copy of the provided Word Art on the page.
void Removes the page.
Integer Replaces all instances of text matching find text with replace text.
Integer Replaces all instances of text matching find text with replace text.
void Selects the Page in the active presentation as the current page selection and removes any previous selection.

PageBackground

Methods

Method Return type Brief description
Picture Fill |null Get the stretched picture fill of this background, or null if the background fill type is not Page Background Type.PICTURE .
Solid Fill |null Get the solid fill of this background, or null if the background fill type is not Page Background Type.SOLID .
Page Background Type Get the type of this page background.
Boolean Whether the background is visible.
void Sets an image from the specified image blob as the page background.
void Sets the image at the provided URL as the page background.
void Sets the solid fill to the given Color .
void Sets the solid fill to the given alpha and Color .
void Sets the solid fill to the given RGB values.
void Sets the solid fill to the given alpha and RGB values.
void Sets the solid fill to the given hex color string.
void Sets the solid fill to the given alpha and hex color string.
void Sets the solid fill to the given Theme Color Type .
void Sets the solid fill to the given alpha and Theme Color Type .
void Sets the background to transparent.

PageBackgroundType

Properties

Property Type Description
UNSUPPORTED
Enum A page background type that is not supported.
NONE
Enum No fill, so the background is rendered white.
SOLID
Enum A solid color fill.
PICTURE
Enum A picture that is stretched to fill the page.

PageElement

Methods

Method Return type Brief description
Page Element Aligns the element to the specified alignment position on the page.
Group Returns the page element as a group.
Image Returns the page element as an image.
Line Returns the page element as a line.
Shape Returns the page element as a shape.
Sheets Chart Returns the page element as a linked chart embedded from Google Sheets.
Speaker Spotlight Returns the page element as a speaker spotlight.
Table Returns the page element as a table.
Video Returns the page element as a video.
Word Art Returns the page element as word art.
Page Element Brings the page element forward on the page by one element.
Page Element Brings the page element to the front of the page.
Page Element Duplicates the page element.
Connection Site[] Returns the list of Connection Site s on the page element, or an empty list if the page element does not have any connection sites.
String Returns the page element's alt text description.
Number|null Gets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Number|null Returns the element's inherent height in points.
Number|null Returns the element's inherent width in points.
Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
String Returns the unique ID for this object.
Page Element Type Returns the page element's type, represented as a Page Element Type enum.
Group |null Returns the group this page element belongs to, or null if the element is not in a group.
Page Returns the page this page element is on.
Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
String Returns the page element's alt text title.
Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Affine Transform Returns the page element's transform.
Number|null Returns the element's width in points, which is the width of the element's bounding box when the element has no rotation.
Page Element Preconcatenates the provided transform to the existing transform of the page element.
void Removes the page element.
Page Element Scales the element's height by the specified ratio.
Page Element Scales the element's width by the specified ratio.
void Selects only the Page Element in the active presentation and removes any previous selection.
void Selects the Page Element in the active presentation.
Page Element Sends the page element backward on the page by one element.
Page Element Sends the page element to the back of the page.
Page Element Sets the page element's alt text description.
Page Element Sets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Page Element Sets the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Page Element Sets the element's clockwise rotation angle around its center in degrees.
Page Element Sets the page element's alt text title.
Page Element Sets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Page Element Sets the transform of the page element with the provided transform.
Page Element Sets the element's width in points, which is the width of the element's bounding box when the element has no rotation.

PageElementRange

Methods

Method Return type Brief description
Page Element[] Returns the list of Page Element instances.

PageElementType

Properties

Property Type Description
UNSUPPORTED
Enum Represents a page element that is not supported and cannot be further classified.
SHAPE
Enum Represents a generic shape that does not have a more specific classification.
IMAGE
Enum Represents an image.
VIDEO
Enum Represents a video.
TABLE
Enum Represents a table.
GROUP
Enum Represents a collection of page elements joined as a single unit.
LINE
Enum Represents a line.
WORD_ART
Enum Represents word art.
SHEETS_CHART
Enum Represents a linked chart embedded from Google Sheets.
SPEAKER_SPOTLIGHT
Enum Represents a speaker spotlight.

PageRange

Methods

Method Return type Brief description
Page[] Returns the list of Page instances.

PageType

Properties

Property Type Description
UNSUPPORTED
Enum A page type that is not supported.
SLIDE
Enum A slide page.
LAYOUT
Enum A layout page.
MASTER
Enum A master page.

Paragraph

Methods

Method Return type Brief description
Integer|null Returns the index of the paragraph's newline.
Text Range |null Returns a Text Range spanning the text in the paragraph ended by this object's newline character.

ParagraphAlignment

Properties

Property Type Description
UNSUPPORTED
Enum A paragraph alignment that is not supported.
START
Enum The paragraph is aligned to the start of the line.
CENTER
Enum The paragraph is centered.
END
Enum The paragraph is aligned to the end of the line.
JUSTIFIED
Enum The paragraph is justified.

ParagraphStyle

Methods

Method Return type Brief description
Number|null Returns the text end indentation for paragraphs in the Text Range in points, or null if there are multiple paragraph styles on the given text.
Number|null Returns the indentation for the first line of paragraphs in the Text Range in points, or null if there are multiple paragraph styles on the given text.
Number|null Returns the text start indentation for paragraphs in the Text Range in points, or null if there are multiple paragraph styles on the given text.
Number|null Returns the line spacing, or null if there are multiple paragraph styles on the given text.
Paragraph Alignment |null Returns the Paragraph Alignment of paragraphs in the Text Range , or null if there are multiple paragraph styles on the given text.
Number|null Returns the extra space above paragraphs in the Text Range in points, or null if there are multiple paragraph styles on the given text.
Number|null Returns the extra space below paragraphs in the Text Range in points, or null if there are multiple paragraph styles on the given text.
Spacing Mode |null Returns the Spacing Mode for paragraphs in the Text Range , or null if there are multiple paragraph styles on the given text.
Text Direction |null Returns the Text Direction for paragraphs in the Text Range , or null if there are multiple paragraph styles on the given text.
Paragraph Style Sets the text end indentation for paragraphs in the Text Range in points.
Paragraph Style Sets the indentation for the first line of paragraphs in the Text Range in points.
Paragraph Style Sets the text start indentation for paragraphs in the Text Range in points.
Paragraph Style Sets the line spacing.
Paragraph Style Sets the Paragraph Alignment of paragraphs in the Text Range .
Paragraph Style Sets the extra space above paragraphs in the Text Range in points.
Paragraph Style Sets the extra space below paragraphs in the Text Range in points.
Paragraph Style Sets the Spacing Mode for paragraphs in the Text Range .
Paragraph Style Sets the Text Direction for paragraphs in the Text Range .

PictureFill

Methods

Method Return type Brief description
Blob Return the data inside this object as a blob converted to the specified content type.
Blob Return the data inside this object as a converted blob.
String Gets a URL to the image.
String|null Gets the image's source URL, if available.

PlaceholderType

Properties

Property Type Description
UNSUPPORTED
Enum A placeholder type that is not supported.
NONE
Enum Not a Placeholder.
BODY
Enum Body text.
CHART
Enum Chart or graph.
CLIP_ART
Enum Clip art image.
CENTERED_TITLE
Enum Title centered.
DIAGRAM
Enum Diagram.
DATE_AND_TIME
Enum Date and time.
FOOTER
Enum Footer text.
HEADER
Enum Header text.
MEDIA
Enum Multimedia.
OBJECT
Enum Any content type.
PICTURE
Enum Picture.
SLIDE_NUMBER
Enum Number of a slide.
SUBTITLE
Enum Subtitle.
TABLE
Enum Table.
TITLE
Enum Slide title.
SLIDE_IMAGE
Enum Slide image.

Point

Methods

Method Return type Brief description
Number Gets the horizontal coordinate, measured in points.
Number Gets the vertical coordinate, measured in points.

PredefinedLayout

Properties

Property Type Description
UNSUPPORTED
Enum A layout that is not supported.
BLANK
Enum Blank layout, with no placeholders.
CAPTION_ONLY
Enum Layout with a caption at the bottom.
TITLE
Enum Layout with a title and a subtitle.
TITLE_AND_BODY
Enum Layout with a title and body.
TITLE_AND_TWO_COLUMNS
Enum Layout with a title and two columns.
TITLE_ONLY
Enum Layout with only a title.
SECTION_HEADER
Enum Layout with a section title.
SECTION_TITLE_AND_DESCRIPTION
Enum Layout with a title and subtitle on one side and description on the other.
ONE_COLUMN_TEXT
Enum Layout with one title and one body, arranged in a single column.
MAIN_POINT
Enum Layout with a main point.
BIG_NUMBER
Enum Layout with a big number heading.

Presentation

Methods

Method Return type Brief description
Presentation Adds the given user to the list of editors for the Presentation .
Presentation Adds the given user to the list of editors for the Presentation .
Presentation Adds the given array of users to the list of editors for the Presentation .
Presentation Adds the given user to the list of viewers for the Presentation .
Presentation Adds the given user to the list of viewers for the Presentation .
Presentation Adds the given array of users to the list of viewers for the Presentation .
Slide Appends a slide to the end of the presentation using the Predefined Layout.BLANK predefined layout based on the current master.
Slide Appends a slide to the end of the presentation using the specified layout based on the current master.
Slide Appends a slide to the end of the presentation using the specified predefined layout based on the current master.
Slide Appends a copy of the provided Slide to the end of the presentation.
Slide Appends a copy of the provided Slide from the source presentation to the end of the current presentation, and sets the slide link as specified by the Slide Linking Mode .
User[] Gets the list of editors for this Presentation .
String Gets the presentation's unique identifier.
Layout[] Gets the layouts in the presentation.
Master[] Gets the masters in the presentation.
String Gets the name or title of the presentation.
Notes Master Gets the notes master of the presentation.
Number Gets the page height of the notes master and notes pages in the presentation in points.
Number Gets the page width of the notes master and notes pages in the presentation in points.
Page Element |null Returns the Page Element with the given ID, or null if none exists.
Number Gets the page height of the slides, layouts, and masters in the presentation in points.
Number Gets the page width of the slides, layouts, and masters in the presentation in points.
Selection |null Gets the user’s selection in the active presentation.
Slide |null Returns the Slide with the given ID, or null if none exists.
Slide[] Gets the slides in the presentation.
String Retrieves the URL to access this presentation.
User[] Gets the list of viewers and commenters for this Presentation .
Slide Inserts a slide at the specified index in the presentation using the Predefined Layout.BLANK predefined layout based on the current master.
Slide Inserts a slide at the specified index in the presentation using the specified layout based on the current master.
Slide Inserts a slide at the specified index in the presentation using the specified predefined layout based on the current master.
Slide Inserts a copy of the provided Slide at the specified index in the presentation.
Slide Inserts a copy of the provided Slide from the source presentation into the specified index in the current presentation, and sets the slide link as specified by the Slide Linking Mode .
Presentation Removes the given user from the list of editors for the Presentation .
Presentation Removes the given user from the list of editors for the Presentation .
Presentation Removes the given user from the list of viewers and commenters for the Presentation .
Presentation Removes the given user from the list of viewers and commenters for the Presentation .
Integer Replaces all instances of text matching find text with replace text.
Integer Replaces all instances of text matching find text with replace text.
void Saves the current Presentation .
void Sets the name or title of the presentation.

Selection

Methods

Method Return type Brief description
Page |null Returns the currently active Page or null if there is no active page.
Page Element Range |null Returns the Page Element Range collection of Page Element instances that are selected or null if there are no Page Element instances selected.
Page Range |null Returns the Page Range a collection of Page instances in the flimstrip that are selected or null if the selection is not of type Selection Type.PAGE .
Selection Type Returns the Selection Type .
Table Cell Range |null Returns the Table Cell Range collection of Table Cell instances that are selected or null if there are no Table Cell instances selected.
Text Range |null Returns the Text Range that is selected or null if the selection is not of type Selection Type.TEXT .

SelectionType

Properties

Property Type Description
UNSUPPORTED
Enum A selection type that is not supported.
NONE
Enum No selection.
TEXT
Enum Text selection.
TABLE_CELL
Enum Table cell selection.
PAGE
Enum Page selection in the thumbnail flimstrip.
PAGE_ELEMENT
Enum Page element selection.
CURRENT_PAGE
Enum Current page selection.

Shape

Methods

Method Return type Brief description
Shape Aligns the element to the specified alignment position on the page.
Shape Brings the page element forward on the page by one element.
Shape Brings the page element to the front of the page.
Page Element Duplicates the page element.
Autofit |null Returns the Autofit of the text within this shape.
Border Returns the Border of the shape.
Connection Site[] Returns the list of Connection Site s on the page element, or an empty list if the page element does not have any connection sites.
Content Alignment Returns the Content Alignment of the text in the shape.
String Returns the page element's alt text description.
Fill Returns the Fill of the shape.
Number|null Gets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Number|null Returns the element's inherent height in points.
Number|null Returns the element's inherent width in points.
Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Link |null Returns the Link or null if there is no link.
String Returns the unique ID for this object.
Page Element Type Returns the page element's type, represented as a Page Element Type enum.
Group |null Returns the group this page element belongs to, or null if the element is not in a group.
Page Returns the page this page element is on.
Page Element |null Returns the parent page element of the placeholder.
Integer|null Returns the placeholder index of the shape.
Placeholder Type Returns the placeholder type of the shape, or Placeholder Type.NONE if the shape is not a placeholder.
Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
Shape Type Returns the type of the shape.
Text Range Returns the text content of the shape.
String Returns the page element's alt text title.
Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Affine Transform Returns the page element's transform.
Number|null Returns the element's width in points, which is the width of the element's bounding box when the element has no rotation.
Shape Preconcatenates the provided transform to the existing transform of the page element.
void Removes the page element.
void Removes a Link .
Image Replaces this shape with an image provided by a Blob Source .
Image Replaces this shape with an image provided by a Blob Source .
Image Replaces this shape with an image.
Image Replaces this shape with an image.
Sheets Chart Replaces this shape with a Google Sheets chart.
Image Replaces this shape with an image of a Google Sheets chart.
Shape Scales the element's height by the specified ratio.
Shape Scales the element's width by the specified ratio.
void Selects only the Page Element in the active presentation and removes any previous selection.
void Selects the Page Element in the active presentation.
Shape Sends the page element backward on the page by one element.
Shape Sends the page element to the back of the page.
Shape Sets the Content Alignment of the text in the shape.
Shape Sets the page element's alt text description.
Shape Sets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Shape Sets the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Link Sets a Link to the given Slide using the zero-based index of the slide.
Link Sets a Link to the given Slide , the link is set by the given slide ID.
Link Sets a Link to the given Slide using the relative position of the slide.
Link Sets a Link to the given non-empty URL string.
Shape Sets the element's clockwise rotation angle around its center in degrees.
Shape Sets the page element's alt text title.
Shape Sets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Shape Sets the transform of the page element with the provided transform.
Shape Sets the element's width in points, which is the width of the element's bounding box when the element has no rotation.

ShapeType

Properties

Property Type Description
UNSUPPORTED
Enum A shape type that is not supported.
TEXT_BOX
Enum Text box shape.
RECTANGLE
Enum Rectangle shape.
ROUND_RECTANGLE
Enum Round corner rectangle shape.
ELLIPSE
Enum Ellipse shape.
ARC
Enum Curved arc shape.
BENT_ARROW
Enum Bent arrow shape.
BENT_UP_ARROW
Enum Bent up arrow shape.
BEVEL
Enum Bevel shape.
BLOCK_ARC
Enum Block arc shape.
BRACE_PAIR
Enum Brace pair shape.
BRACKET_PAIR
Enum Bracket pair shape.
CAN
Enum Can shape.
CHEVRON
Enum Chevron shape.
CHORD
Enum Chord shape.
CLOUD
Enum Cloud shape.
CORNER
Enum Corner shape.
CUBE
Enum Cube shape.
CURVED_DOWN_ARROW
Enum Curved down arrow shape.
CURVED_LEFT_ARROW
Enum Curved left arrow shape.
CURVED_RIGHT_ARROW
Enum Curved right arrow shape.
CURVED_UP_ARROW
Enum Curved up arrow shape.
DECAGON
Enum Decagon shape.
DIAGONAL_STRIPE
Enum Diagonal stripe shape.
DIAMOND
Enum Diamond shape.
DODECAGON
Enum Dodecagon shape.
DONUT
Enum Donut shape.
DOUBLE_WAVE
Enum Double wave shape.
DOWN_ARROW
Enum Down arrow shape.
DOWN_ARROW_CALLOUT
Enum Callout down arrow shape.
FOLDED_CORNER
Enum Folded corner shape.
FRAME
Enum Frame shape.
HALF_FRAME
Enum Half frame shape.
HEART
Enum Heart shape.
HEPTAGON
Enum Heptagon shape.
HEXAGON
Enum Hexagon shape.
HOME_PLATE
Enum Home plate shape.
HORIZONTAL_SCROLL
Enum Horizontal scroll shape.
IRREGULAR_SEAL_1
Enum Irregular seal 1 shape.
IRREGULAR_SEAL_2
Enum Irregular seal 2 shape.
LEFT_ARROW
Enum Left arrow shape.
LEFT_ARROW_CALLOUT
Enum Callout left arrow shape.
LEFT_BRACE
Enum Left brace shape.
LEFT_BRACKET
Enum Left bracket shape.
LEFT_RIGHT_ARROW
Enum Left right arrow shape.
LEFT_RIGHT_ARROW_CALLOUT
Enum Callout left right arrow shape.
LEFT_RIGHT_UP_ARROW
Enum Left right up arrow shape.
LEFT_UP_ARROW
Enum Left up arrow shape.
LIGHTNING_BOLT
Enum Lightning bolt shape.
MATH_DIVIDE
Enum Divide math shape.
MATH_EQUAL
Enum Equal math shape.
MATH_MINUS
Enum Minus math shape.
MATH_MULTIPLY
Enum Multiply math shape.
MATH_NOT_EQUAL
Enum Not equal math shape.
MATH_PLUS
Enum Plus math shape.
MOON
Enum Moon shape.
NO_SMOKING
Enum No smoking shape.
NOTCHED_RIGHT_ARROW
Enum Notched right arrow shape.
OCTAGON
Enum Octagon shape.
PARALLELOGRAM
Enum Parallelogram shape.
PENTAGON
Enum Pentagon shape.
PIE
Enum Pie shape.
PLAQUE
Enum Plaque shape.
PLUS
Enum Plus shape.
QUAD_ARROW
Enum Quad-arrow shape.
QUAD_ARROW_CALLOUT
Enum Callout quad-arrow shape.
RIBBON
Enum Ribbon shape.
RIBBON_2
Enum Ribbon 2 shape.
RIGHT_ARROW
Enum Right arrow shape.
RIGHT_ARROW_CALLOUT
Enum Callout right arrow shape.
RIGHT_BRACE
Enum Right brace shape.
RIGHT_BRACKET
Enum Right bracket shape.
ROUND_1_RECTANGLE
Enum One round corner rectangle shape.
ROUND_2_DIAGONAL_RECTANGLE
Enum Two diagonal round corner rectangle shape.
ROUND_2_SAME_RECTANGLE
Enum Two same-side round corner rectangle shape.
RIGHT_TRIANGLE
Enum Right triangle shape.
SMILEY_FACE
Enum Smiley face shape.
SNIP_1_RECTANGLE
Enum One snip corner rectangle shape.
SNIP_2_DIAGONAL_RECTANGLE
Enum Two diagonal snip corner rectangle shape.
SNIP_2_SAME_RECTANGLE
Enum Two same-side snip corner rectangle shape.
SNIP_ROUND_RECTANGLE
Enum One snip one round corner rectangle shape.
STAR_10
Enum Ten pointed star shape.
STAR_12
Enum Twelve pointed star shape.
STAR_16
Enum Sixteen pointed star shape.
STAR_24
Enum Twenty four pointed star shape.
STAR_32
Enum Thirty two pointed star shape.
STAR_4
Enum Four pointed star shape.
STAR_5
Enum Five pointed star shape.
STAR_6
Enum Six pointed star shape.
STAR_7
Enum Seven pointed star shape.
STAR_8
Enum Eight pointed star shape.
STRIPED_RIGHT_ARROW
Enum Striped right arrow shape.
SUN
Enum Sun shape.
TRAPEZOID
Enum Trapezoid shape.
TRIANGLE
Enum Triangle shape.
UP_ARROW
Enum Up arrow shape.
UP_ARROW_CALLOUT
Enum Callout up arrow shape.
UP_DOWN_ARROW
Enum Up down arrow shape.
UTURN_ARROW
Enum U-turn arrow shape.
VERTICAL_SCROLL
Enum Vertical scroll shape.
WAVE
Enum Wave shape.
WEDGE_ELLIPSE_CALLOUT
Enum Callout wedge ellipse shape.
WEDGE_RECTANGLE_CALLOUT
Enum Callout wedge rectangle shape.
WEDGE_ROUND_RECTANGLE_CALLOUT
Enum Callout wedge round rectangle shape.
FLOW_CHART_ALTERNATE_PROCESS
Enum Alternate process flow shape.
FLOW_CHART_COLLATE
Enum Collate flow shape.
FLOW_CHART_CONNECTOR
Enum Connector flow shape.
FLOW_CHART_DECISION
Enum Decision flow shape.
FLOW_CHART_DELAY
Enum Delay flow shape.
FLOW_CHART_DISPLAY
Enum Display flow shape.
FLOW_CHART_DOCUMENT
Enum Document flow shape.
FLOW_CHART_EXTRACT
Enum Extract flow shape.
FLOW_CHART_INPUT_OUTPUT
Enum Input output flow shape.
FLOW_CHART_INTERNAL_STORAGE
Enum Internal storage flow shape.
FLOW_CHART_MAGNETIC_DISK
Enum Magnetic disk flow shape.
FLOW_CHART_MAGNETIC_DRUM
Enum Magnetic drum flow shape.
FLOW_CHART_MAGNETIC_TAPE
Enum Magnetic tape flow shape.
FLOW_CHART_MANUAL_INPUT
Enum Manual input flow shape.
FLOW_CHART_MANUAL_OPERATION
Enum Manual operation flow shape.
FLOW_CHART_MERGE
Enum Merge flow shape.
FLOW_CHART_MULTIDOCUMENT
Enum Multi-document flow shape.
FLOW_CHART_OFFLINE_STORAGE
Enum Offline storage flow shape.
FLOW_CHART_OFFPAGE_CONNECTOR
Enum Off-page connector flow shape.
FLOW_CHART_ONLINE_STORAGE
Enum Online storage flow shape.
FLOW_CHART_OR
Enum Or flow shape.
FLOW_CHART_PREDEFINED_PROCESS
Enum Predefined process flow shape.
FLOW_CHART_PREPARATION
Enum Preparation flow shape.
FLOW_CHART_PROCESS
Enum Process flow shape.
FLOW_CHART_PUNCHED_CARD
Enum Punched card flow shape.
FLOW_CHART_PUNCHED_TAPE
Enum Punched tape flow shape.
FLOW_CHART_SORT
Enum Sort flow shape.
FLOW_CHART_SUMMING_JUNCTION
Enum Summing junction flow shape.
FLOW_CHART_TERMINATOR
Enum Terminator flow shape.
ARROW_EAST
Enum East arrow shape.
ARROW_NORTH_EAST
Enum Northeast arrow shape.
ARROW_NORTH
Enum North arrow shape.
SPEECH
Enum Speech shape.
STARBURST
Enum Star burst shape.
TEARDROP
Enum Teardrop shape.
ELLIPSE_RIBBON
Enum Ellipse ribbon shape.
ELLIPSE_RIBBON_2
Enum Ellipse ribbon 2 shape.
CLOUD_CALLOUT
Enum Callout cloud shape.
CUSTOM
Enum Custom shape.

SheetsChart

Methods

Method Return type Brief description
Sheets Chart Aligns the element to the specified alignment position on the page.
Image |null Returns the chart as an image or null if the chart is not an embedded image.
Sheets Chart Brings the page element forward on the page by one element.
Sheets Chart Brings the page element to the front of the page.
Page Element Duplicates the page element.
Integer Gets the ID of the specific chart in the Google Sheets spreadsheet that is embedded.
Connection Site[] Returns the list of Connection Site s on the page element, or an empty list if the page element does not have any connection sites.
String Returns the page element's alt text description.
Sheets Chart Embed Type Returns the embed type of the Sheets chart.
Number|null Gets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Number|null Returns the element's inherent height in points.
Number|null Returns the element's inherent width in points.
Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Link |null Returns the Link or null if there is no link.
String Returns the unique ID for this object.
Page Element Type Returns the page element's type, represented as a Page Element Type enum.
Group |null Returns the group this page element belongs to, or null if the element is not in a group.
Page Returns the page this page element is on.
Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
String Gets the ID of the Google Sheets spreadsheet that contains the source chart.
String Returns the page element's alt text title.
Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Affine Transform Returns the page element's transform.
Number|null Returns the element's width in points, which is the width of the element's bounding box when the element has no rotation.
Sheets Chart Preconcatenates the provided transform to the existing transform of the page element.
void Refreshes the chart by replacing it with the latest version of the chart from Google Sheets.
void Removes the page element.
void Removes a Link .
Sheets Chart Scales the element's height by the specified ratio.
Sheets Chart Scales the element's width by the specified ratio.
void Selects only the Page Element in the active presentation and removes any previous selection.
void Selects the Page Element in the active presentation.
Sheets Chart Sends the page element backward on the page by one element.
Sheets Chart Sends the page element to the back of the page.
Sheets Chart Sets the page element's alt text description.
Sheets Chart Sets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Sheets Chart Sets the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Link Sets a Link to the given Slide using the zero-based index of the slide.
Link Sets a Link to the given Slide , the link is set by the given slide ID.
Link Sets a Link to the given Slide using the relative position of the slide.
Link Sets a Link to the given non-empty URL string.
Sheets Chart Sets the element's clockwise rotation angle around its center in degrees.
Sheets Chart Sets the page element's alt text title.
Sheets Chart Sets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Sheets Chart Sets the transform of the page element with the provided transform.
Sheets Chart Sets the element's width in points, which is the width of the element's bounding box when the element has no rotation.

SheetsChartEmbedType

Properties

Property Type Description
UNSUPPORTED
Enum Represents a chart that is not supported and cannot be further classified.
IMAGE
Enum Indicates that the chart is embedded as an image.

Slide

Methods

Method Return type Brief description
Slide Duplicates the slide.
Page Background Gets the page's background.
Color Scheme Gets the Color Scheme associated with the page.
Group[] Returns the list of Group objects on the page.
Image[] Returns the list of Image objects on the page.
Layout |null Gets the layout that the slide is based on or null if the slide is not based on a layout.
Line[] Returns the list of Line objects on the page.
Notes Page Returns the notes page associated with the slide.
String Gets the unique ID for the page.
Page Element |null Returns the Page Element on the page with the given ID, or null if none exists.
Page Element[] Returns the list of Page Element objects rendered on the page.
Page Type Gets the type of the page.
Page Element |null Returns the placeholder Page Element object for a specified Placeholder Type or null if a matching placeholder is not present.
Page Element |null Returns the placeholder Page Element object for a specified Placeholder Type and a placeholder index, or null if the placeholder is not present.
Page Element[] Returns the list of placeholder Page Element objects in the page.
Shape[] Returns the list of Shape objects on the page.
Sheets Chart[] Returns the list of Sheets Chart objects on the page.
Slide Linking Mode Returns a Slide Linking Mode indicating if the slide is linked to another slide.
String Returns the source Presentation ID or null if the slide is not linked.
String Returns the source slide ID or null if the slide is not linked.
Table[] Returns the list of Table objects on the page.
Video[] Returns the list of Video objects on the page.
Word Art[] Returns the list of Word Art objects on the page.
Group Groups all the specified page elements.
Group Inserts a copy of the provided Group on the page.
Image Inserts an image at the top left corner of the page with a default size from the specified image blob.
Image Inserts an image on the page with the provided position and size from the specified image blob.
Image Inserts a copy of the provided Image on the page.
Image Inserts an image at the top left corner of the page with a default size from the provided URL.
Image Inserts an image on the page with the provided position and size from the provided URL.
Line Inserts a copy of the provided Line on the page.
Line Inserts a line on the page connecting two connection sites .
Line Inserts a line on the page.
Page Element Inserts a copy of the provided Page Element on the page.
Shape Inserts a copy of the provided Shape on the page.
Shape Inserts a shape on the page.
Shape Inserts a shape on the page.
Sheets Chart Inserts a Google Sheets chart on the page.
Sheets Chart Inserts a Google Sheets chart on the page with the provided position and size.
Sheets Chart Inserts a copy of the provided Sheets Chart on the page.
Image Inserts a Google Sheets chart as an Image on the page.
Image Inserts a Google Sheets chart as an Image on the page with the provided position and size.
Table Inserts a table on the page.
Table Inserts a table on the page with the provided position and size.
Table Inserts a copy of the provided Table on the page.
Shape Inserts a text box Shape containing the provided string on the page.
Shape Inserts a text box Shape containing the provided string on the page.
Video Inserts a video at the top left corner of the page with a default size.
Video Inserts a video on the page with the provided position and size.
Video Inserts a copy of the provided Video on the page.
Word Art Inserts a copy of the provided Word Art on the page.
Boolean Returns whether the slide is skipped in the presentation mode.
void Move the slide to the specified index.
void Refreshes the slide to reflect any changes made to the linked source slide.
void Removes the page.
Integer Replaces all instances of text matching find text with replace text.
Integer Replaces all instances of text matching find text with replace text.
void Selects the Page in the active presentation as the current page selection and removes any previous selection.
void Sets whether the slide is skipped in the presentation mode.
void Unlinks the current Slide from its source slide.

SlideLinkingMode

Properties

Property Type Description
UNSUPPORTED
Enum A slide linking mode that isn't supported.
LINKED
Enum Indicates that slides are linked.
NOT_LINKED
Enum Indicates that slides aren't linked.

SlidePosition

Properties

Property Type Description
NEXT_SLIDE
Enum The next slide.
PREVIOUS_SLIDE
Enum The previous slide.
FIRST_SLIDE
Enum The first slide in the presentation.
LAST_SLIDE
Enum The last slide in the presentation.

SlidesApp

Properties

Property Type Description
Alignment Position
Alignment Position An enumeration of the types of alignment positions.
Arrow Style
Arrow Style An enumeration of the different arrow styles that a Line can have.
Auto Text Type
Auto Text Type An enumeration of the types of auto text.
Autofit Type
Autofit Type An enumeration of autofit types.
Cell Merge State
Cell Merge State An enumeration of the different merge states of a table cell.
Color Type
Color Type An enumeration of color types.
Content Alignment
Content Alignment An enumeration of values used to specify content alignment.
Dash Style
Dash Style An enumeration of the different dash styles that a Line can have.
Fill Type
Fill Type An enumeration of fill types.
Line Category
Line Category An enumeration of the categories of Line .
Line Fill Type
Line Fill Type An enumeration of the types of Line Fill .
Line Type
Line Type An enumeration of the types of Line .
Link Type
Link Type An enumeration of the types of links.
List Preset
List Preset An enumeration of the types of list presets.
Page Background Type
Page Background Type An enumeration of the types of page backgrounds.
Page Element Type
Page Element Type An enumeration of the types of page elements.
Page Type
Page Type An enumeration of the types of pages.
Paragraph Alignment
Paragraph Alignment An enumeration of the types of paragraph alignment.
Placeholder Type
Placeholder Type An enumeration of the types of placeholders.
Predefined Layout
Predefined Layout An enumeration of the predefined layouts.
Selection Type
Selection Type An enumeration of the types of selections.
Shape Type
Shape Type An enumeration of the types of shapes.
Sheets Chart Embed Type
Sheets Chart Embed Type An enumeration of Sheets chart embed types.
Slide Linking Mode
Slide Linking Mode An enumeration of the ways Slides can be linked.
Slide Position
Slide Position An enumeration of the types of slide positions.
Spacing Mode
Spacing Mode An enumeration of the types of spacing modes.
Text Baseline Offset
Text Baseline Offset An enumeration of the types of text baseline offset.
Text Direction
Text Direction An enumeration of the types of text directions.
Theme Color Type
Theme Color Type An enumeration of theme colors.
Video Source Type
Video Source Type An enumeration of the types of video source.

Methods

Method Return type Brief description
Presentation Creates and opens a new Presentation .
Presentation |null Returns the currently active presentation to which the script is container-bound , or null if there is no active presentation.
Ui Returns an instance of the presentation's user-interface environment that allows the script to add features like menus, dialogs, and sidebars.
Affine Transform Builder Returns a new Affine Transform Builder to build an Affine Transform .
Presentation Opens the Presentation with the given ID.
Presentation Opens the Presentation with the given URL.

SolidFill

Methods

Method Return type Brief description
Number Get the opacity of the color, in the interval from [0, 1.0], where 1.0 means fully opaque.
Color Get the color of the fill.

SpacingMode

Properties

Property Type Description
UNSUPPORTED
Enum A spacing mode that is not supported.
NEVER_COLLAPSE
Enum Paragraph spacing is always rendered.
COLLAPSE_LISTS
Enum Paragraph spacing is skipped between list elements.

SpeakerSpotlight

Methods

Method Return type Brief description
Speaker Spotlight Aligns the element to the specified alignment position on the page.
Speaker Spotlight Brings the page element forward on the page by one element.
Speaker Spotlight Brings the page element to the front of the page.
Page Element Duplicates the page element.
Border Returns the Border of the speaker spotlight.
Connection Site[] Returns the list of Connection Site s on the page element, or an empty list if the page element does not have any connection sites.
String Returns the page element's alt text description.
Number|null Gets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Number|null Returns the element's inherent height in points.
Number|null Returns the element's inherent width in points.
Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Shape Type |null Returns the Shape Type of the mask applied to the speaker spotlight, or null if there is no mask.
String Returns the unique ID for this object.
Page Element Type Returns the page element's type, represented as a Page Element Type enum.
Group |null Returns the group this page element belongs to, or null if the element is not in a group.
Page Returns the page this page element is on.
Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
String Returns the page element's alt text title.
Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Affine Transform Returns the page element's transform.
Number|null Returns the element's width in points, which is the width of the element's bounding box when the element has no rotation.
Speaker Spotlight Preconcatenates the provided transform to the existing transform of the page element.
void Removes the page element.
Speaker Spotlight Scales the element's height by the specified ratio.
Speaker Spotlight Scales the element's width by the specified ratio.
void Selects only the Page Element in the active presentation and removes any previous selection.
void Selects the Page Element in the active presentation.
Speaker Spotlight Sends the page element backward on the page by one element.
Speaker Spotlight Sends the page element to the back of the page.
Speaker Spotlight Sets the page element's alt text description.
Speaker Spotlight Sets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Speaker Spotlight Sets the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Speaker Spotlight Sets the element's clockwise rotation angle around its center in degrees.
Speaker Spotlight Sets the page element's alt text title.
Speaker Spotlight Sets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Speaker Spotlight Sets the transform of the page element with the provided transform.
Speaker Spotlight Sets the element's width in points, which is the width of the element's bounding box when the element has no rotation.

Table

Methods

Method Return type Brief description
Table Aligns the element to the specified alignment position on the page.
Table Column Appends a new column to the right of the last column of the table.
Table Row Appends a new row below the last row of the table.
Table Brings the page element forward on the page by one element.
Table Brings the page element to the front of the page.
Page Element Duplicates the page element.
Table Cell Returns the specified cell in the table.
Table Column Returns the specified column in the table.
Connection Site[] Returns the list of Connection Site s on the page element, or an empty list if the page element does not have any connection sites.
String Returns the page element's alt text description.
Number|null Gets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Number|null Returns the element's inherent height in points.
Number|null Returns the element's inherent width in points.
Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Integer Returns the number of columns in the table.
Integer Returns the number of rows in the table.
String Returns the unique ID for this object.
Page Element Type Returns the page element's type, represented as a Page Element Type enum.
Group |null Returns the group this page element belongs to, or null if the element is not in a group.
Page Returns the page this page element is on.
Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
Table Row Returns the specified row in the table.
String Returns the page element's alt text title.
Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Affine Transform Returns the page element's transform.
Number|null Returns the element's width in points, which is the width of the element's bounding box when the element has no rotation.
Table Column Inserts a new column at the specified index of the table.
Table Row Inserts a new row at the specified index of the table.
Table Preconcatenates the provided transform to the existing transform of the page element.
void Removes the page element.
Table Scales the element's height by the specified ratio.
Table Scales the element's width by the specified ratio.
void Selects only the Page Element in the active presentation and removes any previous selection.
void Selects the Page Element in the active presentation.
Table Sends the page element backward on the page by one element.
Table Sends the page element to the back of the page.
Table Sets the page element's alt text description.
Table Sets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Table Sets the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Table Sets the element's clockwise rotation angle around its center in degrees.
Table Sets the page element's alt text title.
Table Sets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Table Sets the transform of the page element with the provided transform.
Table Sets the element's width in points, which is the width of the element's bounding box when the element has no rotation.

TableCell

Methods

Method Return type Brief description
Integer Returns the 0-based column index of the table cell.
Integer Returns the column span of the table cell.
Content Alignment Returns the Content Alignment of the text in the table cell.
Fill Returns the fill of the table cell.
Table Cell |null Returns the head cell of this table cell.
Cell Merge State Returns the merge state of the table cell.
Table Column Returns the table column containing the current cell.
Table Row Returns the table row containing the current cell.
Table Returns the table containing the current cell.
Integer Returns the 0-based row index of the table cell.
Integer Returns the row span of the table cell.
Text Range Returns the text content of the table cell.
Table Cell Sets the Content Alignment of the text in the table cell.

TableCellRange

Methods

Method Return type Brief description
Table Cell[] Returns the list of Table Cell instances.

TableColumn

Methods

Method Return type Brief description
Table Cell Returns the cell at the specified index.
Integer Returns the 0-based index of the column.
Integer Returns the number of cells in this column.
Table Returns the table containing the current column.
Number Returns the width of the column in points.
void Removes the table column.

TableRow

Methods

Method Return type Brief description
Table Cell Returns the cell at the specified index.
Integer Returns the 0-based index of the row.
Number Returns the minimum height of the row in points.
Integer Returns the number of cells in this row.
Table Returns the table containing the current row.
void Removes the table row.

TextBaselineOffset

Properties

Property Type Description
UNSUPPORTED
Enum A text baseline offset that is not supported.
NONE
Enum The text is not vertically offset.
SUPERSCRIPT
Enum The text is vertically offset upwards.
SUBSCRIPT
Enum The text is vertically offset downwards.

TextDirection

Properties

Property Type Description
UNSUPPORTED
Enum A text direction that is not supported.
LEFT_TO_RIGHT
Enum The text goes from left to right.
RIGHT_TO_LEFT
Enum The text goes from right to left.

TextRange

Methods

Method Return type Brief description
Paragraph Appends a paragraph at the end of the text range.
Text Range Appends a copy of the provided text range to the end of the current text range.
Text Range Appends a copy of the provided text range to the end of the current text range.
Text Range Appends text at the end of the text range.
String Returns the rendered text bounded by this range of the associated shape or table cell in a format appropriate to display to end users.
String Returns the raw text bounded by this range of the associated shape or table cell.
void Clears the text bounded by this range.
void Clears the text bounded by the start and end offsets in the range.
Text Range[] Returns all the ranges matching the search pattern in the current text range.
Text Range[] Returns all the ranges matching the search pattern in the current text range starting from the start offset.
Auto Text[] Returns the auto texts within the current text range.
Integer Returns the exclusive, 0-based index for the last character in this range.
Integer Returns the number of characters in this range.
Text Range[] Returns a collection of text ranges that correspond to all Link s within the current text range or overlapping the current text range.
Paragraph[] Returns the paragraphs in lists that overlap the current text range.
List Style Returns the List Style of the current text range.
Paragraph Style Returns the Paragraph Style of the current text range.
Paragraph[] Returns the paragraphs that overlap the current text range.
Text Range Returns a new Text Range covering part of the range from which it is derived.
Text Range[] Returns the text runs that overlap the current text range.
Integer Returns the inclusive, 0-based index for the first character in this range.
Text Style |null Returns the text style of the range, or null if the range is empty.
Paragraph Inserts a paragraph at the start offset.
Text Range Inserts a copy of the provided text range at the start offset.
Text Range Inserts a copy of the provided text range at the start offset.
Text Range Inserts text at the start offset.
Boolean Returns true if there are no characters in this range, and returns false otherwise.
Integer Replaces all instances of text matching find text with replace text.
Integer Replaces all instances of text matching find text with replace text.
void Selects only the Text Range in the active presentation and removes any previous selection.
Text Range Sets the text bounded by this range of the associated shape or table cell.

TextStyle

Methods

Method Return type Brief description
Color |null Returns the background color of the text, or null if there are multiple styles on the text.
Text Baseline Offset |null Returns the vertical offset of text from its normal position, or null if there are multiple styles on the text.
String|null Returns the font family of the text, or null if there are multiple styles on the text.
Number|null Returns the font size of the text in points, or null if there are multiple styles on the text.
Integer|null Returns the font weight of the text, or null if there are multiple styles on the text.
Color |null Returns the foreground color of the text, or null if there are multiple styles on the text.
Link |null Returns the Link on the text, or null if there is no link or if the link is on part of the text or if there are multiple links.
Boolean|null Returns true if there is link on the text, false if not, or null if the link is on part of the text or there are multiple links.
Boolean|null Returns true if the background of the text is transparent, false if not, or null if there are multiple styles on the text.
Boolean|null Returns true if the text is rendered as bold, false if not, or null if there are multiple styles on the text.
Boolean|null Returns true if the text is italicized, false if not, or null if there are multiple styles on the text.
Boolean|null Returns true if the text is in small capital letters, false if not, or null if there are multiple styles on the text.
Boolean|null Returns true if the text is struck through, false if not, or null if there are multiple styles on the text.
Boolean|null Returns true if the text is underlined, false if not, or null if there are multiple styles on the text.
Text Style Removes a Link .
Text Style Sets the background color of the text.
Text Style Sets the background color of the text to the given RGB values from 0 to 255.
Text Style Sets the background color of the text to the given hex color string.
Text Style Sets the background color of the text to the given Theme Color Type .
Text Style Sets the background color of the text to transparent.
Text Style Sets the vertical offset of the text relative to its normal position.
Text Style Sets whether the text should be rendered as bold.
Text Style Sets the font family of the text .
Text Style Sets the font family and weight of the text.
Text Style Sets the font size of the text, in points.
Text Style Sets the foreground color of the text.
Text Style Sets the foreground color of the text to the given RGB values from 0 to 255.
Text Style Sets the foreground color of the text to the given hex color string.
Text Style Sets the foreground color of the text to the given Theme Color Type .
Text Style Sets the whether the text is italicized.
Text Style Sets a Link to the given Slide using the zero-based index of the slide.
Text Style Sets a Link to the given Slide , the link is set by the given slide ID.
Text Style Sets a Link to the given Slide using the relative position of the slide.
Text Style Sets a Link to the given non-empty URL string.
Text Style Sets whether the text is rendered in small capital letters.
Text Style Sets whether the text is struck through.
Text Style Sets whether the text is underlined.

ThemeColor

Methods

Method Return type Brief description
Color Type Get the type of this color.
Theme Color Type Get the theme color type of this color.

ThemeColorType

Properties

Property Type Description
UNSUPPORTED
Enum Represents a theme color that is not supported.
DARK1
Enum Represents the first dark color.
LIGHT1
Enum Represents the first light color.
DARK2
Enum Represents the second dark color.
LIGHT2
Enum Represents the second light color.
ACCENT1
Enum Represents the first accent color.
ACCENT2
Enum Represents the second accent color.
ACCENT3
Enum Represents the third accent color.
ACCENT4
Enum Represents the fourth accent color.
ACCENT5
Enum Represents the fifth accent color.
ACCENT6
Enum Represents the sixth accent color.
HYPERLINK
Enum Represents the color to use for hyperlinks.
FOLLOWED_HYPERLINK
Enum Represents the color to use for visited hyperlinks.

Video

Methods

Method Return type Brief description
Video Aligns the element to the specified alignment position on the page.
Video Brings the page element forward on the page by one element.
Video Brings the page element to the front of the page.
Page Element Duplicates the page element.
Border Returns the Border of the video.
Connection Site[] Returns the list of Connection Site s on the page element, or an empty list if the page element does not have any connection sites.
String Returns the page element's alt text description.
Number|null Gets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Number|null Returns the element's inherent height in points.
Number|null Returns the element's inherent width in points.
Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
String Returns the unique ID for this object.
Page Element Type Returns the page element's type, represented as a Page Element Type enum.
Group |null Returns the group this page element belongs to, or null if the element is not in a group.
Page Returns the page this page element is on.
Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
Video Source Type Gets the video source.
String Gets an URL to the video thumbnail.
String Returns the page element's alt text title.
Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Affine Transform Returns the page element's transform.
String|null Gets an URL to the video.
String Gets the video source's unique identifier for this video.
Number|null Returns the element's width in points, which is the width of the element's bounding box when the element has no rotation.
Video Preconcatenates the provided transform to the existing transform of the page element.
void Removes the page element.
Video Scales the element's height by the specified ratio.
Video Scales the element's width by the specified ratio.
void Selects only the Page Element in the active presentation and removes any previous selection.
void Selects the Page Element in the active presentation.
Video Sends the page element backward on the page by one element.
Video Sends the page element to the back of the page.
Video Sets the page element's alt text description.
Video Sets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Video Sets the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Video Sets the element's clockwise rotation angle around its center in degrees.
Video Sets the page element's alt text title.
Video Sets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Video Sets the transform of the page element with the provided transform.
Video Sets the element's width in points, which is the width of the element's bounding box when the element has no rotation.

VideoSourceType

Properties

Property Type Description
UNSUPPORTED
Enum A video source type that is not supported.
YOUTUBE
Enum YouTube video.

WordArt

Methods

Method Return type Brief description
Word Art Aligns the element to the specified alignment position on the page.
Word Art Brings the page element forward on the page by one element.
Word Art Brings the page element to the front of the page.
Page Element Duplicates the page element.
Connection Site[] Returns the list of Connection Site s on the page element, or an empty list if the page element does not have any connection sites.
String Returns the page element's alt text description.
Number|null Gets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Number|null Returns the element's inherent height in points.
Number|null Returns the element's inherent width in points.
Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Link |null Returns the Link or null if there is no link.
String Returns the unique ID for this object.
Page Element Type Returns the page element's type, represented as a Page Element Type enum.
Group |null Returns the group this page element belongs to, or null if the element is not in a group.
Page Returns the page this page element is on.
String Gets the text that is rendered as word art.
Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
String Returns the page element's alt text title.
Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Affine Transform Returns the page element's transform.
Number|null Returns the element's width in points, which is the width of the element's bounding box when the element has no rotation.
Word Art Preconcatenates the provided transform to the existing transform of the page element.
void Removes the page element.
void Removes a Link .
Word Art Scales the element's height by the specified ratio.
Word Art Scales the element's width by the specified ratio.
void Selects only the Page Element in the active presentation and removes any previous selection.
void Selects the Page Element in the active presentation.
Word Art Sends the page element backward on the page by one element.
Word Art Sends the page element to the back of the page.
Word Art Sets the page element's alt text description.
Word Art Sets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
Word Art Sets the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
Link Sets a Link to the given Slide using the zero-based index of the slide.
Link Sets a Link to the given Slide , the link is set by the given slide ID.
Link Sets a Link to the given Slide using the relative position of the slide.
Link Sets a Link to the given non-empty URL string.
Word Art Sets the element's clockwise rotation angle around its center in degrees.
Word Art Sets the page element's alt text title.
Word Art Sets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
Word Art Sets the transform of the page element with the provided transform.
Word Art Sets the element's width in points, which is the width of the element's bounding box when the element has no rotation.
Create a Mobile Website
View Site in Mobile | Classic
Share by: