Slides Service

Слайды

Этот сервис позволяет скриптам создавать, получать доступ и изменять файлы Google Slides. Более подробную информацию о базовых функциях сервиса Slides см. также в документации Google Slides .

Классы

Имя Краткое описание
Affine Transform Матрица 3x3, используемая для преобразования исходных координат (x1, y1) в целевые координаты (x2, y2) посредством матричного умножения:
[ x2 ]   [ scaleX shearX translateX ] [ x1 ]
[ y2 ] = [ shearY scaleY translateY ] [ y1 ]
[ 1  ]   [   0      0        1      ] [ 1  ]
Affine Transform Builder Конструктор для объектов Affine Transform .
Alignment Position Положение выравнивания, которое необходимо применить.
Arrow Style Виды начальных и конечных форм, с помощью которых можно визуализировать линейную геометрию.
Auto Text Текстовый элемент, который динамически заменяется содержимым, способным изменяться со временем, например, номер слайда.
Auto Text Type Типы автотекста.
Autofit Описывает параметры автоматической подгонки фигуры.
Autofit Type Типы автоподбора.
Border Описывает границу вокруг элемента.
Cell Merge State Состояния слияния ячеек таблицы.
Color Непрозрачный цвет
Color Scheme Цветовая схема определяет соответствие между элементами Theme Color Type и фактическими цветами, используемыми для их отображения.
Connection Site Место соединения на Page Element , которое может подключаться к connector .
Content Alignment Выравнивание содержимого ячейки Shape или Table Cell .
Dash Style Виды штрихов, с помощью которых можно отображать линейную геометрию.
Fill Описывает фон элемента страницы.
Fill Type Виды наполнителя.
Group Набор Page Element , объединенных в единое целое.
Image Page Element , представляющий собой изображение.
Layout Структура презентации.
Line Page Element , представляющий собой линию.
Line Category Категория линии.
Line Fill Описывает заливку линии или контура.
Line Fill Type Виды заливки линиями.
Line Type Типы линий.
Link Гипертекстовая ссылка.
Link Type Типы Link .
List Список в тексте.
List Preset Предварительно заданные шаблоны символов для списков в тексте.
List Style Оформление списка для диапазона текста.
Master Мастер презентаций.
Notes Master Мастер заметок в презентации.
Notes Page Страница для заметок в презентации.
Page Страница в презентации.
Page Background Описывает контекст страницы.
Page Background Type Виды фоновых изображений для страниц.
Page Element Визуальный элемент, отображаемый на странице.
Page Element Range Набор из одного или нескольких экземпляров Page Element .
Page Element Type Тип элемента страницы.
Page Range Набор из одного или нескольких экземпляров Page .
Page Type Типы страниц.
Paragraph Фрагмент текста, завершающийся символом новой строки.
Paragraph Alignment Типы выравнивания текста для абзаца.
Paragraph Style Стили текста, применяемые ко всем абзацам.
Picture Fill Заливка, которая отображает изображение, растянутое до размеров контейнера.
Placeholder Type Типы-заполнители.
Point Точка, обозначающая местоположение.
Predefined Layout Предварительно заданные макеты.
Presentation Презентация.
Selection Выбор пользователя в активной презентации.
Selection Type Тип Selection .
Shape Page Element , представляющий собой произвольную фигуру, не имеющую более конкретной классификации.
Shape Type Типы форм.
Sheets Chart Page Element , представляющий собой связанную диаграмму, встроенную из Google Таблиц.
Sheets Chart Embed Type Тип встраивания диаграммы в таблице Sheets.
Slide Слайд в презентации.
Slide Linking Mode Способ связи между слайдами.
Slide Position Относительное положение Slide .
Slides App Создает и открывает Presentations , которые можно редактировать.
Solid Fill Заливка сплошным цветом.
Spacing Mode Различные режимы межстрочного интервала.
Speaker Spotlight Page Element представляющий собой информационный элемент, отображающий докладчика.
Table Page Element , представляющий собой таблицу.
Table Cell Ячейка в таблице.
Table Cell Range Набор из одного или нескольких экземпляров Table Cell .
Table Column Столбец в таблице.
Table Row Строка в таблице.
Text Baseline Offset Текст смещен по вертикали относительно своего обычного положения.
Text Direction Текст с указаниями может быть плавно вставлен.
Text Range Фрагмент текстового содержимого ячейки Shape или Table Cell .
Text Style Стиль текста.
Theme Color Цвет, указывающий на элемент в Color Scheme страницы.
Theme Color Type Название элемента в цветовой схеме страницы.
Video Page Element , представляющий собой видео.
Video Source Type Типы источников видео.
Word Art Page Element , представляющий собой текстовое оформление.

Affine Transform

Методы

Метод Тип возвращаемого значения Краткое описание
get Scale X() Number Получает элемент масштабирования по координате X.
get Scale Y() Number Получает элемент масштабирования по координате Y.
get Shear X() Number Получает элемент сдвига по координате X.
get Shear Y() Number Получает элемент сдвига по координате Y.
get Translate X() Number Получает элемент смещения по координате X в точках.
get Translate Y() Number Получает элемент смещения по координате Y в точках.
to Builder() Affine Transform Builder Возвращает новый Affine Transform Builder созданный на основе этого преобразования.

Affine Transform Builder

Методы

Метод Тип возвращаемого значения Краткое описание
build() Affine Transform Создает объект Affine Transform инициализированный элементами, заданными в конструкторе.
set Scale X(scaleX) Affine Transform Builder Устанавливает элемент масштабирования по координате X и возвращает конструктор.
set Scale Y(scaleY) Affine Transform Builder Устанавливает элемент масштабирования по координате Y и возвращает конструктор.
set Shear X(shearX) Affine Transform Builder Устанавливает элемент сдвига по координате X и возвращает конструктор.
set Shear Y(shearY) Affine Transform Builder Устанавливает элемент сдвига по координате Y и возвращает конструктор.
set Translate X(translateX) Affine Transform Builder Устанавливает элемент смещения по оси X в точках и возвращает конструктор.
set Translate Y(translateY) Affine Transform Builder Устанавливает элемент смещения по координате Y в точках и возвращает конструктор.

Alignment Position

Характеристики

Свойство Тип Описание
CENTER Enum Выровняйте по центру.
HORIZONTAL_CENTER Enum Выровняйте по горизонтальному центру.
VERTICAL_CENTER Enum Выровняйте по вертикальному центру.

Arrow Style

Характеристики

Свойство Тип Описание
UNSUPPORTED Enum Неподдерживаемый стиль стрелок.
NONE Enum Стрелки нет.
STEALTH_ARROW Enum Стрела с зазубренным наконечником.
FILL_ARROW Enum Заполненная стрелка.
FILL_CIRCLE Enum Закрашенный круг.
FILL_SQUARE Enum Заполненный квадрат.
FILL_DIAMOND Enum Заполненный бриллиант.
OPEN_ARROW Enum Полая стрела.
OPEN_CIRCLE Enum Пустой круг.
OPEN_SQUARE Enum Полый квадрат.
OPEN_DIAMOND Enum Полый алмаз.

Auto Text

Методы

Метод Тип возвращаемого значения Краткое описание
get Auto Text Type() Auto Text Type |null Возвращает тип автотекста.
get Index() Integer|null Возвращает индекс автотекста.
get Range() Text Range |null Возвращает Text Range охватывающий автотекст.

Auto Text Type

Характеристики

Свойство Тип Описание
UNSUPPORTED Enum Тип автотекста, который не поддерживается.
SLIDE_NUMBER Enum Номер слайда.

Autofit

Методы

Метод Тип возвращаемого значения Краткое описание
disable Autofit() Autofit Устанавливает для параметра Autofit Type значение Autofit Type.NONE .
get Autofit Type() Autofit Type Получает Autofit Type фигуры.
get Font Scale() Number Применяет масштаб шрифта к фигуре.
get Line Spacing Reduction() Number Применяет к фигуре уменьшение межстрочного интервала.

Autofit Type

Характеристики

Свойство Тип Описание
UNSUPPORTED Enum Тип автоподгонки, который не поддерживается.
NONE Enum Функция автоматической подгонки не применяется.
TEXT_AUTOFIT Enum Уменьшает размер текста при переполнении.
SHAPE_AUTOFIT Enum Изменяет размер фигуры по размеру текста.

Border

Методы

Метод Тип возвращаемого значения Краткое описание
get Dash Style() Dash Style |null Получает Dash Style .
get Line Fill() Line Fill Получает Line Fill границы.
get Weight() Number|null Определяет толщину границы в пунктах.
is Visible() Boolean Определяет, видна ли граница или нет.
set Dash Style(style) Border Задает Dash Style рамки.
set Transparent() Border Делает границу прозрачной.
set Weight(points) Border Задает толщину границы в пунктах.

Cell Merge State

Характеристики

Свойство Тип Описание
NORMAL Enum Ячейка не объединена.
HEAD Enum Клетка объединена, и она является головной клеткой (например, верхней левой) в объединенном наборе клеток.
MERGED Enum Ячейка объединена, но это не головная ячейка (например, верхняя левая).

Color

Методы

Метод Тип возвращаемого значения Краткое описание
as Rgb Color() Rgb Color Преобразует этот цвет в Rgb Color .
as Theme Color() Theme Color Преобразует этот цвет в Theme Color .
get Color Type() Color Type Выберите оттенок этого цвета.

Color Scheme

Методы

Метод Тип возвращаемого значения Краткое описание
get Concrete Color(theme) Color Возвращает конкретный Color связанный с Theme Color Type в данной цветовой схеме.
get Theme Colors() Theme Color Type[] Возвращает список всех возможных типов цветов в заданной цветовой схеме.
set Concrete Color(type, color) Color Scheme Устанавливает конкретный цвет, связанный с Theme Color Type в данной цветовой схеме, на заданный цвет.
set Concrete Color(type, red, green, blue) Color Scheme Устанавливает конкретный цвет, связанный с Theme Color Type в данной цветовой схеме, в заданный цвет в формате RGB.
set Concrete Color(type, hexColor) Color Scheme Устанавливает конкретный цвет, связанный с Theme Color Type в данной цветовой схеме, в заданный цвет в шестнадцатеричном формате.

Connection Site

Методы

Метод Тип возвращаемого значения Краткое описание
get Index() Integer Возвращает индекс места подключения.
get Page Element() Page Element Возвращает Page Element , на котором находится сайт подключения.

Content Alignment

Характеристики

Свойство Тип Описание
UNSUPPORTED Enum Неподдерживаемое выравнивание содержимого.
TOP Enum Выравнивает содержимое по верхнему краю контейнера.
MIDDLE Enum Выравнивает содержимое по центру контейнера.
BOTTOM Enum Выравнивает содержимое по нижнему краю контейнера.

Dash Style

Характеристики

Свойство Тип Описание
UNSUPPORTED Enum Неподдерживаемый стиль пунктирной линии.
SOLID Enum Сплошная линия.
DOT Enum Пунктирная линия.
DASH Enum Пунктирная линия.
DASH_DOT Enum Чередование тире и точек.
LONG_DASH Enum Линия с крупными пунктирными линиями.
LONG_DASH_DOT Enum Чередование крупных штрихов и точек.

Fill

Методы

Метод Тип возвращаемого значения Краткое описание
get Solid Fill() Solid Fill |null Получить сплошную заливку этого фона или null , если тип заливки не равен Fill Type.SOLID .
get Type() Fill Type Укажите тип заливки.
is Visible() Boolean Виден ли фон.
set Solid Fill(color) void Устанавливает сплошную заливку заданным Color .
set Solid Fill(color, alpha) void Устанавливает сплошную заливку с заданным значением альфа-канала и Color .
set Solid Fill(red, green, blue) void Устанавливает сплошную заливку в соответствии с заданными значениями RGB.
set Solid Fill(red, green, blue, alpha) void Задает сплошную заливку с заданными значениями альфа-канала и RGB.
set Solid Fill(hexString) void Устанавливает сплошную заливку в соответствии с заданной шестнадцатеричной цветовой строкой.
set Solid Fill(hexString, alpha) void Устанавливает сплошную заливку в соответствии с заданным значением альфа-канала и шестнадцатеричным кодом цвета.
set Solid Fill(color) void Устанавливает сплошную заливку в соответствии с заданным Theme Color Type .
set Solid Fill(color, alpha) void Устанавливает сплошную заливку с заданным значением прозрачности и Theme Color Type .
set Transparent() void Устанавливает прозрачный фон.

Fill Type

Характеристики

Свойство Тип Описание
UNSUPPORTED Enum Тип заливки, который не поддерживается.
NONE Enum Заливка отсутствует, поэтому фон прозрачный.
SOLID Enum Заливка сплошным цветом.

Group

Методы

Метод Тип возвращаемого значения Краткое описание
align On Page(alignmentPosition) Group Выравнивает элемент по указанному положению на странице.
bring Forward() Group Перемещает элемент страницы на один элемент вперед по странице.
bring To Front() Group Выводит элемент страницы на передний план страницы.
duplicate() Page Element Дублирует элемент страницы.
get Children() Page Element[] Получает набор элементов страницы, входящих в группу.
get Connection Sites() Connection Site[] Возвращает список Connection Site ) для элемента страницы или пустой список, если элемент страницы не содержит сайтов подключения.
get Description() String Возвращает описание альтернативного текста элемента страницы.
get Height() Number|null Получает высоту элемента в точках, которая равна высоте ограничивающего прямоугольника элемента, когда элемент не имеет поворота.
get Inherent Height() Number|null Возвращает собственную высоту элемента в пунктах.
get Inherent Width() Number|null Возвращает внутреннюю ширину элемента в пунктах.
get Left() Number Возвращает горизонтальное положение элемента в точках, измеренное от верхнего левого угла страницы, если элемент не имеет поворота.
get Object Id() String Возвращает уникальный идентификатор данного объекта.
get Page Element Type() Page Element Type Возвращает тип элемента страницы, представленный в виде перечисления Page Element Type .
get Parent Group() Group |null Возвращает группу, к которой принадлежит данный элемент страницы, или null если элемент не входит в группу.
get Parent Page() Page Возвращает страницу, на которой находится данный элемент страницы.
get Rotation() Number Возвращает угол поворота элемента по часовой стрелке вокруг его центра в градусах, где ноль градусов означает отсутствие поворота.
get Title() String Возвращает альтернативный текст заголовка элемента страницы.
get Top() Number Получает вертикальное положение элемента в точках, измеренное от верхнего левого угла страницы, когда элемент не имеет поворота.
get Transform() Affine Transform Получает преобразование элемента страницы.
get Width() Number|null Возвращает ширину элемента в пунктах, которая соответствует ширине ограничивающего прямоугольника элемента, когда элемент не имеет поворота.
preconcatenate Transform(transform) Group Добавляет предоставленное преобразование к существующему преобразованию элемента страницы.
remove() void Удаляет элемент страницы.
scale Height(ratio) Group Изменяет высоту элемента в соответствии с заданным коэффициентом.
scale Width(ratio) Group Изменяет ширину элемента в соответствии с заданным коэффициентом.
select() void Выделяет только Page Element в активной презентации и удаляет любое предыдущее выделение.
select(replace) void Выбирает Page Element в активной презентации.
send Backward() Group Отбрасывает элемент страницы на один элемент назад по странице.
send To Back() Group Отправляет элемент страницы в конец страницы.
set Description(description) Group Задает альтернативный текст описания для элемента страницы.
set Height(height) Group Задает высоту элемента в точках, которая соответствует высоте ограничивающего прямоугольника элемента, когда элемент не имеет поворота.
set Left(left) Group Задает горизонтальное положение элемента в точках, измеряемое от верхнего левого угла страницы, когда элемент не имеет поворота.
set Rotation(angle) Group Задает угол поворота элемента по часовой стрелке вокруг его центра в градусах.
set Title(title) Group Задает альтернативный текст заголовка элемента страницы.
set Top(top) Group Задает вертикальное положение элемента в точках, измеряемое от верхнего левого угла страницы, когда элемент не имеет поворота.
set Transform(transform) Group Задает преобразование элемента страницы с заданным параметром transform.
set Width(width) Group Задает ширину элемента в пунктах, которая соответствует ширине ограничивающего прямоугольника элемента, когда элемент не имеет поворота.
ungroup() void Разгруппировывает элементы группы.

Image

Методы

Метод Тип возвращаемого значения Краткое описание
align On Page(alignmentPosition) Image Выравнивает элемент по указанному положению на странице.
bring Forward() Image Перемещает элемент страницы на один элемент вперед по странице.
bring To Front() Image Выводит элемент страницы на передний план страницы.
duplicate() Page Element Дублирует элемент страницы.
get As(contentType) Blob Возвращает данные, содержащиеся в этом объекте, в виде двоичных данных (blob), преобразованных в указанный тип содержимого.
get Blob() Blob Возвращает данные, содержащиеся в этом изображении, в виде объекта типа "blob".
get Border() Border Возвращает Border изображения.
get Connection Sites() Connection Site[] Возвращает список Connection Site ) для элемента страницы или пустой список, если элемент страницы не содержит сайтов подключения.
get Content Url() String Получает URL-адрес изображения.
get Description() String Возвращает описание альтернативного текста элемента страницы.
get Height() Number|null Получает высоту элемента в точках, которая равна высоте ограничивающего прямоугольника элемента, когда элемент не имеет поворота.
get Inherent Height() Number|null Возвращает собственную высоту элемента в пунктах.
get Inherent Width() Number|null Возвращает внутреннюю ширину элемента в пунктах.
get Left() Number Возвращает горизонтальное положение элемента в точках, измеренное от верхнего левого угла страницы, если элемент не имеет поворота.
get Link() Link |null Возвращает Link или null , если ссылки нет.
get Object Id() String Возвращает уникальный идентификатор данного объекта.
get Page Element Type() Page Element Type Возвращает тип элемента страницы, представленный в виде перечисления Page Element Type .
get Parent Group() Group |null Возвращает группу, к которой принадлежит данный элемент страницы, или null если элемент не входит в группу.
get Parent Page() Page Возвращает страницу, на которой находится данный элемент страницы.
get Parent Placeholder() Page Element |null Возвращает родительский элемент страницы для заполнителя.
get Placeholder Index() Integer|null Возвращает индекс изображения-заполнителя.
get Placeholder Type() Placeholder Type Возвращает тип заполнителя изображения или Placeholder Type.NONE если фигура не является заполнителем.
get Rotation() Number Возвращает угол поворота элемента по часовой стрелке вокруг его центра в градусах, где ноль градусов означает отсутствие поворота.
get Source Url() String|null Получает URL-адрес источника изображения, если он доступен.
get Title() String Возвращает альтернативный текст заголовка элемента страницы.
get Top() Number Получает вертикальное положение элемента в точках, измеренное от верхнего левого угла страницы, когда элемент не имеет поворота.
get Transform() Affine Transform Возвращает преобразование элемента страницы.
get Width() Number|null Возвращает ширину элемента в пунктах, которая соответствует ширине ограничивающего прямоугольника элемента, когда элемент не имеет поворота.
preconcatenate Transform(transform) Image Добавляет предоставленное преобразование к существующему преобразованию элемента страницы.
remove() void Удаляет элемент страницы.
remove Link() void Удаляет Link .
replace(blobSource) Image Заменяет это изображение изображением, описанным объектом Blob Source .
replace(blobSource, crop) Image Заменяет это изображение изображением, описанным объектом Image , при необходимости обрезая изображение по размеру.
replace(imageUrl) Image Заменяет это изображение другим изображением, загруженным по указанному URL-адресу.
replace(imageUrl, crop) Image Заменяет это изображение другим изображением, загруженным по указанному URL-адресу, при необходимости обрезая изображение по размеру.
scale Height(ratio) Image Изменяет высоту элемента в соответствии с заданным коэффициентом.
scale Width(ratio) Image Изменяет ширину элемента в соответствии с заданным коэффициентом.
select() void Выделяет только Page Element в активной презентации и удаляет любое предыдущее выделение.
select(replace) void Выбирает Page Element в активной презентации.
send Backward() Image Отбрасывает элемент страницы на один элемент назад по странице.
send To Back() Image Отправляет элемент страницы в конец страницы.
set Description(description) Image Задает альтернативный текст описания для элемента страницы.
set Height(height) Image Задает высоту элемента в точках, которая соответствует высоте ограничивающего прямоугольника элемента, когда элемент не имеет поворота.
set Left(left) Image Задает горизонтальное положение элемента в точках, измеряемое от верхнего левого угла страницы, когда элемент не имеет поворота.
set Link Slide(slideIndex) Link Устанавливает Link на указанный Slide , используя нулевой индекс слайда.
set Link Slide(slide) Link Устанавливает Link на указанный Slide ; ссылка задается по идентификатору слайда.
set Link Slide(slidePosition) Link Устанавливает Link на указанный Slide , используя относительное положение слайда.
set Link Url(url) Link Устанавливает Link на заданную непустую строку URL.
set Rotation(angle) Image Задает угол поворота элемента по часовой стрелке вокруг его центра в градусах.
set Title(title) Image Задает альтернативный текст заголовка элемента страницы.
set Top(top) Image Задает вертикальное положение элемента в точках, измеряемое от верхнего левого угла страницы, когда элемент не имеет поворота.
set Transform(transform) Image Задает преобразование элемента страницы с заданным параметром transform.
set Width(width) Image Задает ширину элемента в пунктах, которая соответствует ширине ограничивающего прямоугольника элемента, когда элемент не имеет поворота.

Layout

Методы

Метод Тип возвращаемого значения Краткое описание
get Background() Page Background Получает фоновое изображение страницы.
get Color Scheme() Color Scheme Определяет Color Scheme соответствующую странице.
get Groups() Group[] Возвращает список объектов Group на странице.
get Images() Image[] Возвращает список объектов Image на странице.
get Layout Name() String Получает название макета.
get Lines() Line[] Возвращает список объектов Line на странице.
get Master() Master Получает исходный файл, на основе которого создается макет.
get Object Id() String Получает уникальный идентификатор страницы.
get Page Element By Id(id) Page Element |null Возвращает Page Element с заданным ID или null , если такового элемента не существует.
get Page Elements() Page Element[] Возвращает список объектов Page Element отображаемых на странице.
get Page Type() Page Type Получает тип страницы.
get Placeholder(placeholderType) Page Element |null Возвращает объект Page Element заполнителя для указанного Placeholder Type или null если соответствующий заполнитель отсутствует.
get Placeholder(placeholderType, placeholderIndex) Page Element |null Возвращает объект Page Element содержащий заполнитель, для указанного Placeholder Type и его индекса, или null если заполнитель отсутствует.
get Placeholders() Page Element[] Возвращает список объектов-заполнителей Page Element страницы.
get Shapes() Shape[] Возвращает список объектов Shape на странице.
get Sheets Charts() Sheets Chart[] Возвращает список объектов Sheets Chart на странице.
get Tables() Table[] Возвращает список объектов Table на странице.
get Videos() Video[] Возвращает список объектов Video на странице.
get Word Arts() Word Art[] Возвращает список объектов Word Art на странице.
group(pageElements) Group Группирует все указанные элементы страницы.
insert Group(group) Group Вставляет копию указанной Group на страницу.
insert Image(blobSource) Image Вставляет изображение в верхний левый угол страницы с размером по умолчанию из указанного блока изображений.
insert Image(blobSource, left, top, width, height) Image Вставляет на страницу изображение с заданными позициями и размерами из указанного блока изображений.
insert Image(image) Image Вставляет копию предоставленного Image на страницу.
insert Image(imageUrl) Image Вставляет изображение в верхний левый угол страницы с размером по умолчанию, взятым из указанного URL-адреса.
insert Image(imageUrl, left, top, width, height) Image Вставляет изображение на страницу с заданными позициями и размерами по указанному URL-адресу.
insert Line(line) Line Вставляет копию предоставленной Line на страницу.
insert Line(lineCategory, startConnectionSite, endConnectionSite) Line Вставляет на страницу линию, соединяющую два connection sites .
insert Line(lineCategory, startLeft, startTop, endLeft, endTop) Line Вставляет строку на страницу.
insert Page Element(pageElement) Page Element Вставляет копию указанного Page Element на страницу.
insert Shape(shape) Shape Вставляет копию предоставленной Shape на страницу.
insert Shape(shapeType) Shape Вставляет фигуру на страницу.
insert Shape(shapeType, left, top, width, height) Shape Вставляет фигуру на страницу.
insert Sheets Chart(sourceChart) Sheets Chart Вставляет диаграмму из Google Таблиц на страницу.
insert Sheets Chart(sourceChart, left, top, width, height) Sheets Chart Вставляет диаграмму из Google Таблиц на страницу в заданном положении и размере.
insert Sheets Chart(sheetsChart) Sheets Chart Вставляет копию предоставленной Sheets Chart на страницу.
insert Sheets Chart As Image(sourceChart) Image Вставляет диаграмму из Google Таблиц в виде Image на страницу.
insert Sheets Chart As Image(sourceChart, left, top, width, height) Image Вставляет диаграмму из Google Таблиц в виде Image на страницу с заданным положением и размером.
insert Table(numRows, numColumns) Table Вставляет таблицу на страницу.
insert Table(numRows, numColumns, left, top, width, height) Table Вставляет таблицу на страницу в заданном положении и размере.
insert Table(table) Table Вставляет копию предоставленной Table на страницу.
insert Text Box(text) Shape Вставляет на страницу текстовое поле Shape содержащее заданную строку.
insert Text Box(text, left, top, width, height) Shape Вставляет на страницу текстовое поле Shape содержащее заданную строку.
insert Video(videoUrl) Video Вставляет видео в верхний левый угол страницы с размером по умолчанию.
insert Video(videoUrl, left, top, width, height) Video Вставляет видео на страницу в заданное положение и размер.
insert Video(video) Video Вставляет копию предоставленного Video на страницу.
insert Word Art(wordArt) Word Art Вставляет копию предоставленного Word Art на страницу.
remove() void Удаляет страницу.
replace All Text(findText, replaceText) Integer Заменяет все вхождения текста, соответствующего запросу «найти текст», на текст, который необходимо заменить.
replace All Text(findText, replaceText, matchCase) Integer Заменяет все вхождения текста, соответствующего запросу «найти текст», на текст, который необходимо заменить.
select As Current Page() void Выбирает Page в активной презентации в качестве current page selection и удаляет все предыдущие выделения.

Line

Методы

Метод Тип возвращаемого значения Краткое описание
align On Page(alignmentPosition) Line Выравнивает элемент по указанному положению на странице.
bring Forward() Line Перемещает элемент страницы на один элемент вперед по странице.
bring To Front() Line Выводит элемент страницы на передний план страницы.
duplicate() Page Element Дублирует элемент страницы.
get Connection Sites() Connection Site[] Возвращает список Connection Site ) для элемента страницы или пустой список, если элемент страницы не содержит сайтов подключения.
get Dash Style() Dash Style Выдержан в фирменном Dash Style .
get Description() String Возвращает описание альтернативного текста элемента страницы.
get End() Point Возвращает конечную точку линии, измеренную от верхнего левого угла страницы.
get End Arrow() Arrow Style Присваивает стрелке в конце строки Arrow Style стрелки.
get End Connection() Connection Site |null Возвращает соединение в конце строки или null , если соединения нет.
get Height() Number|null Получает высоту элемента в точках, которая равна высоте ограничивающего прямоугольника элемента, когда элемент не имеет поворота.
get Inherent Height() Number|null Возвращает собственную высоту элемента в пунктах.
get Inherent Width() Number|null Возвращает внутреннюю ширину элемента в пунктах.
get Left() Number Возвращает горизонтальное положение элемента в точках, измеренное от верхнего левого угла страницы, если элемент не имеет поворота.
get Line Category() Line Category Получает Line Category .
get Line Fill() Line Fill Получает Line Fill линии.
get Line Type() Line Type Получает Line Type .
get Link() Link |null Возвращает Link или null , если ссылки нет.
get Object Id() String Возвращает уникальный идентификатор данного объекта.
get Page Element Type() Page Element Type Возвращает тип элемента страницы, представленный в виде перечисления Page Element Type .
get Parent Group() Group |null Возвращает группу, к которой принадлежит данный элемент страницы, или null если элемент не входит в группу.
get Parent Page() Page Возвращает страницу, на которой находится данный элемент страницы.
get Rotation() Number Возвращает угол поворота элемента по часовой стрелке вокруг его центра в градусах, где ноль градусов означает отсутствие поворота.
get Start() Point Возвращает начальную точку линии, измеренную от верхнего левого угла страницы.
get Start Arrow() Arrow Style Присваивает Arrow Style стрелки, расположенной в начале строки.
get Start Connection() Connection Site |null Возвращает соединение в начале строки или null , если соединения нет.
get Title() String Возвращает альтернативный текст заголовка элемента страницы.
get Top() Number Получает вертикальное положение элемента в точках, измеренное от верхнего левого угла страницы, когда элемент не имеет поворота.
get Transform() Affine Transform Возвращает преобразование элемента страницы.
get Weight() Number Возвращает толщину линии в пунктах.
get Width() Number|null Возвращает ширину элемента в пунктах, которая соответствует ширине ограничивающего прямоугольника элемента, когда элемент не имеет поворота.
is Connector() Boolean Возвращает true если линия является соединительной, или false если нет.
preconcatenate Transform(transform) Line Добавляет предоставленное преобразование к существующему преобразованию элемента страницы.
remove() void Удаляет элемент страницы.
remove Link() void Удаляет Link .
reroute() Line Перенаправляет начало и конец линии к двум ближайшим точкам соединения на связанных элементах страницы.
scale Height(ratio) Line Изменяет высоту элемента в соответствии с заданным коэффициентом.
scale Width(ratio) Line Изменяет ширину элемента в соответствии с заданным коэффициентом.
select() void Выделяет только Page Element в активной презентации и удаляет любое предыдущее выделение.
select(replace) void Выбирает Page Element в активной презентации.
send Backward() Line Отбрасывает элемент страницы на один элемент назад по странице.
send To Back() Line Отправляет элемент страницы в конец страницы.
set Dash Style(style) Line Задает Dash Style линии.
set Description(description) Line Задает альтернативный текст описания для элемента страницы.
set End(left, top) Line Задает положение конечной точки линии.
set End(point) Line Задает положение конечной точки линии.
set End Arrow(style) Line Задает Arrow Style стрелки в конце строки.
set End Connection(connectionSite) Line Устанавливает соединение в конце строки.
set Height(height) Line Задает высоту элемента в точках, которая соответствует высоте ограничивающего прямоугольника элемента, когда элемент не имеет поворота.
set Left(left) Line Задает горизонтальное положение элемента в точках, измеряемое от верхнего левого угла страницы, когда элемент не имеет поворота.
set Line Category(lineCategory) Line Задает Line Category .
set Link Slide(slideIndex) Link Устанавливает Link на указанный Slide , используя нулевой индекс слайда.
set Link Slide(slide) Link Устанавливает Link на указанный Slide ; ссылка задается по идентификатору слайда.
set Link Slide(slidePosition) Link Устанавливает Link на указанный Slide , используя относительное положение слайда.
set Link Url(url) Link Устанавливает Link на заданную непустую строку URL.
set Rotation(angle) Line Задает угол поворота элемента по часовой стрелке вокруг его центра в градусах.
set Start(left, top) Line Задает положение начальной точки линии.
set Start(point) Line Задает положение начальной точки линии.
set Start Arrow(style) Line Задает Arrow Style стрелки в начале строки.
set Start Connection(connectionSite) Line Устанавливает соединение в начале строки.
set Title(title) Line Задает альтернативный текст заголовка элемента страницы.
set Top(top) Line Задает вертикальное положение элемента в точках, измеряемое от верхнего левого угла страницы, когда элемент не имеет поворота.
set Transform(transform) Line Задает преобразование элемента страницы с заданным параметром transform.
set Weight(points) Line Задает толщину линии в пунктах.
set Width(width) Line Задает ширину элемента в пунктах, которая соответствует ширине ограничивающего прямоугольника элемента, когда элемент не имеет поворота.

Line Category

Характеристики

Свойство Тип Описание
UNSUPPORTED Enum Категория строки, которая не поддерживается.
STRAIGHT Enum Прямые разъемы, включая прямой разъем 1.
BENT Enum Изогнутые разъемы, в том числе изогнутые разъемы с 2 по 5.
CURVED Enum Изогнутые разъемы, включая изогнутые разъемы с 2 по 5.

Line Fill

Методы

Метод Тип возвращаемого значения Краткое описание
get Fill Type() Line Fill Type Получает тип заливки линии.
get Solid Fill() Solid Fill |null Получает сплошную заливку линии или null , если тип заливки не Line Fill Type.SOLID .
set Solid Fill(color) void Устанавливает сплошную заливку заданным Color .
set Solid Fill(color, alpha) void Устанавливает сплошную заливку с заданным значением альфа-канала и Color .
set Solid Fill(red, green, blue) void Устанавливает сплошную заливку в соответствии с заданными значениями RGB.
set Solid Fill(red, green, blue, alpha) void Задает сплошную заливку с заданными значениями альфа-канала и RGB.
set Solid Fill(hexString) void Устанавливает сплошную заливку в соответствии с заданной шестнадцатеричной цветовой строкой.
set Solid Fill(hexString, alpha) void Устанавливает сплошную заливку в соответствии с заданным значением альфа-канала и шестнадцатеричным кодом цвета.
set Solid Fill(color) void Устанавливает сплошную заливку в соответствии с заданным Theme Color Type .
set Solid Fill(color, alpha) void Устанавливает сплошную заливку с заданным значением прозрачности и Theme Color Type .

Line Fill Type

Характеристики

Свойство Тип Описание
UNSUPPORTED Enum Тип заливки линией, который не поддерживается.
NONE Enum Заливка отсутствует, поэтому линия или контур прозрачны.
SOLID Enum Заливка сплошным цветом.

Line Type

Характеристики

Свойство Тип Описание
UNSUPPORTED Enum Тип строки, который не поддерживается.
STRAIGHT_CONNECTOR_1 Enum Прямой соединитель 1 формы.
BENT_CONNECTOR_2 Enum Изогнутый соединитель 2 формы.
BENT_CONNECTOR_3 Enum Изогнутый соединитель 3-го типа.
BENT_CONNECTOR_4 Enum Изогнутый соединитель 4-го типа.
BENT_CONNECTOR_5 Enum Изогнутый соединитель 5-го типа.
CURVED_CONNECTOR_2 Enum Изогнутый соединитель 2 формы.
CURVED_CONNECTOR_3 Enum Изогнутый соединитель 3-го типа.
CURVED_CONNECTOR_4 Enum Изогнутый соединитель 4-го типа.
CURVED_CONNECTOR_5 Enum Изогнутый соединитель 5-го типа.
STRAIGHT_LINE Enum Прямая линия.

Методы

Метод Тип возвращаемого значения Краткое описание
get Link Type() Link Type Возвращает Link Type .
get Linked Slide() Slide |null Возвращает связанный Slide для ссылок, отличных от URL, если он существует.
get Slide Id() String|null Возвращает идентификатор связанного Slide или null если Link Type не равен Link Type.SLIDE_ID .
get Slide Index() Integer|null Возвращает индекс связанного Slide , начинающийся с нуля, или null если Link Type не равен Link Type.SLIDE_INDEX .
get Slide Position() Slide Position |null Возвращает Slide Position , к которому ведет Slide , или null если Link Type не равен Link Type.SLIDE_POSITION .
get Url() String|null Возвращает URL-адрес внешней веб-страницы или null если Link Type не равен Link Type.URL .

Link Type

Характеристики

Свойство Тип Описание
UNSUPPORTED Enum Тип ссылки, который не поддерживается.
URL Enum Ссылка на внешнюю веб-страницу.
SLIDE_POSITION Enum Ссылка на конкретный слайд этой презентации, указанная по его положению.
SLIDE_ID Enum Ссылка на конкретный слайд этой презентации, обозначенная его идентификатором.
SLIDE_INDEX Enum Ссылка на конкретный слайд этой презентации, доступ к которому осуществляется по нулевому индексу.

List

Методы

Метод Тип возвращаемого значения Краткое описание
get List Id() String Возвращает идентификатор списка.
get List Paragraphs() Paragraph[] Возвращает все Paragraphs из списка.

List Preset

Характеристики

Свойство Тип Описание
DISC_CIRCLE_SQUARE Enum Список, содержащий символы `DISC`, `CIRCLE` и `SQUARE` для первых трех уровней вложенности списка.
DIAMONDX_ARROW3D_SQUARE Enum Список, содержащий символы `DIAMONDX`, `ARROW3D` и `SQUARE` для первых трех уровней вложенности списка.
CHECKBOX Enum Список с глифами `CHECKBOX` для всех уровней вложенности списков.
ARROW_DIAMOND_DISC Enum Список, содержащий символы `СТРЕЛА`, `АЛМАЗ` и `ДИСК` для первых 3 уровней вложенности списка.
STAR_CIRCLE_SQUARE Enum Список, содержащий символы `ЗВЕЗДА`, `КРУГ` и `КВАДРАТ` для первых 3 уровней вложенности списка.
ARROW3D_CIRCLE_SQUARE Enum Список, содержащий символы `ARROW3D`, `CIRCLE` и `SQUARE` для первых 3 уровней вложенности списка.
LEFTTRIANGLE_DIAMOND_DISC Enum Список, содержащий символы `LEFTTRIANGLE`, `DIAMOND` и `DISC` для первых 3 уровней вложенности списка.
DIAMONDX_HOLLOWDIAMOND_SQUARE Enum Список, содержащий символы `DIAMONDX`, `HOLLOWDIAMOND` и `SQUARE` для первых 3 уровней вложенности списка.
DIAMOND_CIRCLE_SQUARE Enum Список, содержащий символы `DIAMOND`, `CIRCLE` и `SQUARE` для первых 3 уровней вложенности списка.
DIGIT_ALPHA_ROMAN Enum Список, содержащий символы `DIGIT`, `ALPHA` и `ROMAN` для первых трех уровней вложенности списка, за которыми следуют точки.
DIGIT_ALPHA_ROMAN_PARENS Enum Список, содержащий символы `DIGIT`, `ALPHA` и `ROMAN` для первых 3 уровней вложенности списка, за которыми следуют скобки.
DIGIT_NESTED Enum Список символов `DIGIT`, разделенных точками, где каждый уровень вложенности использует символ предыдущего уровня в качестве префикса.
UPPERALPHA_ALPHA_ROMAN Enum Список, содержащий символы `UPPERALPHA`, `ALPHA` и `ROMAN` для первых трех уровней вложенности списка, за которыми следуют точки.
UPPERROMAN_UPPERALPHA_DIGIT Enum Список, содержащий символы `UPPERROMAN`, `UPPERALPHA` и `DIGIT` для первых трех уровней вложенности списка, за которыми следуют точки.
ZERODIGIT_ALPHA_ROMAN Enum Список, содержащий символы `ZERODIGIT`, `ALPHA` и `ROMAN` для первых трех уровней вложенности списка, за которыми следуют точки.

List Style

Методы

Метод Тип возвращаемого значения Краткое описание
apply List Preset(listPreset) List Style Применяет указанный List Preset ко всем абзацам, которые перекрываются с текстом.
get Glyph() String|null Возвращает отрисованный глиф для текста.
get List() List |null Возвращает List в котором находится текст, или null если ни один фрагмент текста не находится в списке, или часть текста находится в списке, или текст находится в нескольких списках.
get Nesting Level() Integer|null Возвращает уровень вложенности текста, начиная с 0.
is In List() Boolean|null Возвращает true , если текст находится ровно в одном списке, false , если ни один фрагмент текста не находится в списке, и null если в списке находится только часть текста или если текст находится в нескольких списках.
remove From List() List Style Удаляет из списков абзацы, перекрывающиеся с основным текстом.

Master

Методы

Метод Тип возвращаемого значения Краткое описание
get Background() Page Background Получает фоновое изображение страницы.
get Color Scheme() Color Scheme Определяет Color Scheme соответствующую странице.
get Groups() Group[] Возвращает список объектов Group на странице.
get Images() Image[] Возвращает список объектов Image на странице.
get Layouts() Layout[] Получает макеты этого мастера.
get Lines() Line[] Возвращает список объектов Line на странице.
get Object Id() String Получает уникальный идентификатор страницы.
get Page Element By Id(id) Page Element |null Возвращает Page Element с заданным ID или null , если такового элемента не существует.
get Page Elements() Page Element[] Возвращает список объектов Page Element отображаемых на странице.
get Page Type() Page Type Получает тип страницы.
get Placeholder(placeholderType) Page Element |null Возвращает объект Page Element заполнителя для указанного Placeholder Type или null если соответствующий заполнитель отсутствует.
get Placeholder(placeholderType, placeholderIndex) Page Element |null Возвращает объект Page Element содержащий заполнитель, для указанного Placeholder Type и его индекса, или null если заполнитель отсутствует.
get Placeholders() Page Element[] Возвращает список объектов-заполнителей Page Element страницы.
get Shapes() Shape[] Возвращает список объектов Shape на странице.
get Sheets Charts() Sheets Chart[] Возвращает список объектов Sheets Chart на странице.
get Tables() Table[] Возвращает список объектов Table на странице.
get Videos() Video[] Возвращает список объектов Video на странице.
get Word Arts() Word Art[] Возвращает список объектов Word Art на странице.
group(pageElements) Group Группирует все указанные элементы страницы.
insert Group(group) Group Вставляет копию указанной Group на страницу.
insert Image(blobSource) Image Вставляет изображение в верхний левый угол страницы с размером по умолчанию из указанного блока изображений.
insert Image(blobSource, left, top, width, height) Image Вставляет на страницу изображение с заданными позициями и размерами из указанного блока изображений.
insert Image(image) Image Вставляет копию предоставленного Image на страницу.
insert Image(imageUrl) Image Вставляет изображение в верхний левый угол страницы с размером по умолчанию, взятым из указанного URL-адреса.
insert Image(imageUrl, left, top, width, height) Image Вставляет изображение на страницу с заданными позициями и размерами по указанному URL-адресу.
insert Line(line) Line Вставляет копию предоставленной Line на страницу.
insert Line(lineCategory, startConnectionSite, endConnectionSite) Line Вставляет на страницу линию, соединяющую два connection sites .
insert Line(lineCategory, startLeft, startTop, endLeft, endTop) Line Вставляет строку на страницу.
insert Page Element(pageElement) Page Element Вставляет копию указанного Page Element на страницу.
insert Shape(shape) Shape Вставляет копию предоставленной Shape на страницу.
insert Shape(shapeType) Shape Вставляет фигуру на страницу.
insert Shape(shapeType, left, top, width, height) Shape Вставляет фигуру на страницу.
insert Sheets Chart(sourceChart) Sheets Chart Вставляет диаграмму из Google Таблиц на страницу.
insert Sheets Chart(sourceChart, left, top, width, height) Sheets Chart Вставляет диаграмму из Google Таблиц на страницу в заданном положении и размере.
insert Sheets Chart(sheetsChart) Sheets Chart Вставляет копию предоставленной Sheets Chart на страницу.
insert Sheets Chart As Image(sourceChart) Image Вставляет диаграмму из Google Таблиц в виде Image на страницу.
insert Sheets Chart As Image(sourceChart, left, top, width, height) Image Вставляет диаграмму из Google Таблиц в виде Image на страницу с заданным положением и размером.
insert Table(numRows, numColumns) Table Вставляет таблицу на страницу.
insert Table(numRows, numColumns, left, top, width, height) Table Вставляет таблицу на страницу в заданном положении и размере.
insert Table(table) Table Вставляет копию предоставленной Table на страницу.
insert Text Box(text) Shape Вставляет на страницу текстовое поле Shape содержащее заданную строку.
insert Text Box(text, left, top, width, height) Shape Вставляет на страницу текстовое поле Shape содержащее заданную строку.
insert Video(videoUrl) Video Вставляет видео в верхний левый угол страницы с размером по умолчанию.
insert Video(videoUrl, left, top, width, height) Video Вставляет видео на страницу в заданное положение и размер.
insert Video(video) Video Вставляет копию предоставленного Video на страницу.
insert Word Art(wordArt) Word Art Вставляет копию предоставленного Word Art на страницу.
remove() void Удаляет страницу.
replace All Text(findText, replaceText) Integer Заменяет все вхождения текста, соответствующего запросу «найти текст», на текст, который необходимо заменить.
replace All Text(findText, replaceText, matchCase) Integer Заменяет все вхождения текста, соответствующего запросу «найти текст», на текст, который необходимо заменить.
select As Current Page() void Выбирает Page в активной презентации в качестве current page selection и удаляет все предыдущие выделения.

Notes Master

Методы

Метод Тип возвращаемого значения Краткое описание
get Groups() Group[] Возвращает список объектов Group на странице.
get Images() Image[] Возвращает список объектов Image на странице.
get Lines() Line[] Возвращает список объектов Line на странице.
get Object Id() String Получает уникальный идентификатор страницы.
get Page Element By Id(id) Page Element |null Возвращает Page Element с заданным ID или null , если такового элемента не существует.
get Page Elements() Page Element[] Возвращает список объектов Page Element отображаемых на странице.
get Placeholder(placeholderType) Page Element |null Возвращает объект Page Element заполнителя для указанного Placeholder Type или null если соответствующий заполнитель отсутствует.
get Placeholder(placeholderType, placeholderIndex) Page Element |null Возвращает объект Page Element содержащий заполнитель, для указанного Placeholder Type и его индекса, или null если заполнитель отсутствует.
get Placeholders() Page Element[] Возвращает список объектов-заполнителей Page Element страницы.
get Shapes() Shape[] Возвращает список объектов Shape на странице.
get Sheets Charts() Sheets Chart[] Возвращает список объектов Sheets Chart на странице.
get Tables() Table[] Возвращает список объектов Table на странице.
get Videos() Video[] Возвращает список объектов Video на странице.
get Word Arts() Word Art[] Возвращает список объектов Word Art на странице.

Notes Page

Методы

Метод Тип возвращаемого значения Краткое описание
get Groups() Group[] Возвращает список объектов Group на странице.
get Images() Image[] Возвращает список объектов Image на странице.
get Lines() Line[] Возвращает список объектов Line на странице.
get Object Id() String Получает уникальный идентификатор страницы.
get Page Element By Id(id) Page Element |null Возвращает Page Element с заданным ID или null , если такового элемента не существует.
get Page Elements() Page Element[] Возвращает список объектов Page Element отображаемых на странице.
get Placeholder(placeholderType) Page Element |null Возвращает объект Page Element заполнителя для указанного Placeholder Type или null если соответствующий заполнитель отсутствует.
get Placeholder(placeholderType, placeholderIndex) Page Element |null Возвращает объект Page Element содержащий заполнитель, для указанного Placeholder Type и его индекса, или null если заполнитель отсутствует.
get Placeholders() Page Element[] Возвращает список объектов-заполнителей Page Element страницы.
get Shapes() Shape[] Возвращает список объектов Shape на странице.
get Sheets Charts() Sheets Chart[] Возвращает список объектов Sheets Chart на странице.
get Speaker Notes Shape() Shape Получает фигуру, содержащую заметки докладчика на странице.
get Tables() Table[] Возвращает список объектов Table на странице.
get Videos() Video[] Возвращает список объектов Video на странице.
get Word Arts() Word Art[] Возвращает список объектов Word Art на странице.
replace All Text(findText, replaceText) Integer Заменяет все вхождения текста, соответствующего запросу «найти текст», на текст, который необходимо заменить.
replace All Text(findText, replaceText, matchCase) Integer Заменяет все вхождения текста, соответствующего запросу «найти текст», на текст, который необходимо заменить.

Page

Методы

Метод Тип возвращаемого значения Краткое описание
as Layout() Layout Возвращает страницу в виде макета.
as Master() Master Возвращает страницу в качестве главной.
as Slide() Slide Возвращает страницу в виде слайда.
get Background() Page Background Получает фоновое изображение страницы.
get Color Scheme() Color Scheme Определяет Color Scheme соответствующую странице.
get Groups() Group[] Возвращает список объектов Group на странице.
get Images() Image[] Возвращает список объектов Image на странице.
get Lines() Line[] Возвращает список объектов Line на странице.
get Object Id() String Получает уникальный идентификатор страницы.
get Page Element By Id(id) Page Element |null Возвращает Page Element с заданным ID или null , если такового элемента не существует.
get Page Elements() Page Element[] Возвращает список объектов Page Element отображаемых на странице.
get Page Type() Page Type Получает тип страницы.
get Placeholder(placeholderType) Page Element |null Возвращает объект Page Element заполнителя для указанного Placeholder Type или null если соответствующий заполнитель отсутствует.
get Placeholder(placeholderType, placeholderIndex) Page Element |null Возвращает объект Page Element содержащий заполнитель, для указанного Placeholder Type и его индекса, или null если заполнитель отсутствует.
get Placeholders() Page Element[] Возвращает список объектов-заполнителей Page Element страницы.
get Shapes() Shape[] Возвращает список объектов Shape на странице.
get Sheets Charts() Sheets Chart[] Возвращает список объектов Sheets Chart на странице.
get Tables() Table[] Возвращает список объектов Table на странице.
get Videos() Video[] Возвращает список объектов Video на странице.
get Word Arts() Word Art[] Возвращает список объектов Word Art на странице.
group(pageElements) Group Groups all the specified page elements.
insert Group(group) Group Inserts a copy of the provided Group on the page.
insert Image(blobSource) Image Inserts an image at the top left corner of the page with a default size from the specified image blob.
insert Image(blobSource, left, top, width, height) Image Inserts an image on the page with the provided position and size from the specified image blob.
insert Image(image) Image Inserts a copy of the provided Image on the page.
insert Image(imageUrl) Image Inserts an image at the top left corner of the page with a default size from the provided URL.
insert Image(imageUrl, left, top, width, height) Image Inserts an image on the page with the provided position and size from the provided URL.
insert Line(line) Line Inserts a copy of the provided Line on the page.
insert Line(lineCategory, startConnectionSite, endConnectionSite) Line Inserts a line on the page connecting two connection sites .
insert Line(lineCategory, startLeft, startTop, endLeft, endTop) Line Inserts a line on the page.
insert Page Element(pageElement) Page Element Inserts a copy of the provided Page Element on the page.
insert Shape(shape) Shape Inserts a copy of the provided Shape on the page.
insert Shape(shapeType) Shape Inserts a shape on the page.
insert Shape(shapeType, left, top, width, height) Shape Inserts a shape on the page.
insert Sheets Chart(sourceChart) Sheets Chart Inserts a Google Sheets chart on the page.
insert Sheets Chart(sourceChart, left, top, width, height) Sheets Chart Inserts a Google Sheets chart on the page with the provided position and size.
insert Sheets Chart(sheetsChart) Sheets Chart Inserts a copy of the provided Sheets Chart on the page.
insert Sheets Chart As Image(sourceChart) Image Inserts a Google Sheets chart as an Image on the page.
insert Sheets Chart As Image(sourceChart, left, top, width, height) Image Inserts a Google Sheets chart as an Image on the page with the provided position and size.
insert Table(numRows, numColumns) Table Inserts a table on the page.
insert Table(numRows, numColumns, left, top, width, height) Table Inserts a table on the page with the provided position and size.
insert Table(table) Table Inserts a copy of the provided Table on the page.
insert Text Box(text) Shape Inserts a text box Shape containing the provided string on the page.
insert Text Box(text, left, top, width, height) Shape Inserts a text box Shape containing the provided string on the page.
insert Video(videoUrl) Video Inserts a video at the top left corner of the page with a default size.
insert Video(videoUrl, left, top, width, height) Video Inserts a video on the page with the provided position and size.
insert Video(video) Video Inserts a copy of the provided Video on the page.
insert Word Art(wordArt) Word Art Inserts a copy of the provided Word Art on the page.
remove() void Removes the page.
replace All Text(findText, replaceText) Integer Replaces all instances of text matching find text with replace text.
replace All Text(findText, replaceText, matchCase) Integer Replaces all instances of text matching find text with replace text.
select As Current Page() void Selects the Page in the active presentation as the current page selection and removes any previous selection.

Page Background

Методы

Метод Тип возвращаемого значения Brief description
get Picture Fill() Picture Fill |null Get the stretched picture fill of this background, or null if the background fill type is not Page Background Type.PICTURE .
get Solid Fill() Solid Fill |null Get the solid fill of this background, or null if the background fill type is not Page Background Type.SOLID .
get Type() Page Background Type Get the type of this page background.
is Visible() Boolean Whether the background is visible.
set Picture Fill(blobSource) void Sets an image from the specified image blob as the page background.
set Picture Fill(imageUrl) void Sets the image at the provided URL as the page background.
set Solid Fill(color) void Sets the solid fill to the given Color .
set Solid Fill(color, alpha) void Sets the solid fill to the given alpha and Color .
set Solid Fill(red, green, blue) void Sets the solid fill to the given RGB values.
set Solid Fill(red, green, blue, alpha) void Sets the solid fill to the given alpha and RGB values.
set Solid Fill(hexString) void Sets the solid fill to the given hex color string.
set Solid Fill(hexString, alpha) void Sets the solid fill to the given alpha and hex color string.
set Solid Fill(color) void Sets the solid fill to the given Theme Color Type .
set Solid Fill(color, alpha) void Sets the solid fill to the given alpha and Theme Color Type .
set Transparent() void Sets the background to transparent.

Page Background Type

Характеристики

Свойство Тип Описание
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.

Page Element

Методы

Метод Тип возвращаемого значения Brief description
align On Page(alignmentPosition) Page Element Aligns the element to the specified alignment position on the page.
as Group() Group Returns the page element as a group.
as Image() Image Returns the page element as an image.
as Line() Line Returns the page element as a line.
as Shape() Shape Returns the page element as a shape.
as Sheets Chart() Sheets Chart Returns the page element as a linked chart embedded from Google Sheets.
as Speaker Spotlight() Speaker Spotlight Returns the page element as a speaker spotlight.
as Table() Table Returns the page element as a table.
as Video() Video Returns the page element as a video.
as Word Art() Word Art Returns the page element as word art.
bring Forward() Page Element Brings the page element forward on the page by one element.
bring To Front() Page Element Brings the page element to the front of the page.
duplicate() Page Element Duplicates the page element.
get Connection Sites() 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.
get Description() String Returns the page element's alt text description.
get Height() 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.
get Inherent Height() Number|null Returns the element's inherent height in points.
get Inherent Width() Number|null Returns the element's inherent width in points.
get Left() Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
get Object Id() String Returns the unique ID for this object.
get Page Element Type() Page Element Type Returns the page element's type, represented as a Page Element Type enum.
get Parent Group() Group |null Returns the group this page element belongs to, or null if the element is not in a group.
get Parent Page() Page Returns the page this page element is on.
get Rotation() Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
get Title() String Returns the page element's alt text title.
get Top() Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
get Transform() Affine Transform Returns the page element's transform.
get Width() 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.
preconcatenate Transform(transform) Page Element Preconcatenates the provided transform to the existing transform of the page element.
remove() void Removes the page element.
scale Height(ratio) Page Element Scales the element's height by the specified ratio.
scale Width(ratio) Page Element Scales the element's width by the specified ratio.
select() void Selects only the Page Element in the active presentation and removes any previous selection.
select(replace) void Selects the Page Element in the active presentation.
send Backward() Page Element Sends the page element backward on the page by one element.
send To Back() Page Element Sends the page element to the back of the page.
set Description(description) Page Element Sets the page element's alt text description.
set Height(height) 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.
set Left(left) 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.
set Rotation(angle) Page Element Sets the element's clockwise rotation angle around its center in degrees.
set Title(title) Page Element Sets the page element's alt text title.
set Top(top) 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.
set Transform(transform) Page Element Sets the transform of the page element with the provided transform.
set Width(width) 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.

Page Element Range

Методы

Метод Тип возвращаемого значения Brief description
get Page Elements() Page Element[] Returns the list of Page Element instances.

Page Element Type

Характеристики

Свойство Тип Описание
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.

Page Range

Методы

Метод Тип возвращаемого значения Brief description
get Pages() Page[] Returns the list of Page instances.

Page Type

Характеристики

Свойство Тип Описание
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

Методы

Метод Тип возвращаемого значения Brief description
get Index() Integer|null Returns the index of the paragraph's newline.
get Range() Text Range |null Returns a Text Range spanning the text in the paragraph ended by this object's newline character.

Paragraph Alignment

Характеристики

Свойство Тип Описание
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.

Paragraph Style

Методы

Метод Тип возвращаемого значения Brief description
get Indent End() 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.
get Indent First Line() 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.
get Indent Start() 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.
get Line Spacing() Number|null Returns the line spacing, or null if there are multiple paragraph styles on the given text.
get Paragraph Alignment() 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.
get Space Above() 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.
get Space Below() 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.
get Spacing Mode() 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.
get Text Direction() 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.
set Indent End(indent) Paragraph Style Sets the text end indentation for paragraphs in the Text Range in points.
set Indent First Line(indent) Paragraph Style Sets the indentation for the first line of paragraphs in the Text Range in points.
set Indent Start(indent) Paragraph Style Sets the text start indentation for paragraphs in the Text Range in points.
set Line Spacing(spacing) Paragraph Style Sets the line spacing.
set Paragraph Alignment(alignment) Paragraph Style Sets the Paragraph Alignment of paragraphs in the Text Range .
set Space Above(space) Paragraph Style Sets the extra space above paragraphs in the Text Range in points.
set Space Below(space) Paragraph Style Sets the extra space below paragraphs in the Text Range in points.
set Spacing Mode(mode) Paragraph Style Sets the Spacing Mode for paragraphs in the Text Range .
set Text Direction(direction) Paragraph Style Sets the Text Direction for paragraphs in the Text Range .

Picture Fill

Методы

Метод Тип возвращаемого значения Brief description
get As(contentType) Blob Return the data inside this object as a blob converted to the specified content type.
get Blob() Blob Return the data inside this object as a converted blob.
get Content Url() String Gets a URL to the image.
get Source Url() String|null Gets the image's source URL, if available.

Placeholder Type

Характеристики

Свойство Тип Описание
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 Картина.
SLIDE_NUMBER Enum Number of a slide.
SUBTITLE Enum Субтитры.
TABLE Enum Стол.
TITLE Enum Slide title.
SLIDE_IMAGE Enum Slide image.

Point

Методы

Метод Тип возвращаемого значения Brief description
getX() Number Gets the horizontal coordinate, measured in points.
getY() Number Gets the vertical coordinate, measured in points.

Predefined Layout

Характеристики

Свойство Тип Описание
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

Методы

Метод Тип возвращаемого значения Brief description
add Editor(emailAddress) Presentation Adds the given user to the list of editors for the Presentation .
add Editor(user) Presentation Adds the given user to the list of editors for the Presentation .
add Editors(emailAddresses) Presentation Adds the given array of users to the list of editors for the Presentation .
add Viewer(emailAddress) Presentation Adds the given user to the list of viewers for the Presentation .
add Viewer(user) Presentation Adds the given user to the list of viewers for the Presentation .
add Viewers(emailAddresses) Presentation Adds the given array of users to the list of viewers for the Presentation .
append Slide() Slide Appends a slide to the end of the presentation using the Predefined Layout.BLANK predefined layout based on the current master.
append Slide(layout) Slide Appends a slide to the end of the presentation using the specified layout based on the current master.
append Slide(predefinedLayout) Slide Appends a slide to the end of the presentation using the specified predefined layout based on the current master.
append Slide(slide) Slide Appends a copy of the provided Slide to the end of the presentation.
append Slide(slide, linkingMode) 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 .
get Editors() User[] Gets the list of editors for this Presentation .
get Id() String Gets the presentation's unique identifier.
get Layouts() Layout[] Gets the layouts in the presentation.
get Masters() Master[] Gets the masters in the presentation.
get Name() String Gets the name or title of the presentation.
get Notes Master() Notes Master Gets the notes master of the presentation.
get Notes Page Height() Number Gets the page height of the notes master and notes pages in the presentation in points.
get Notes Page Width() Number Gets the page width of the notes master and notes pages in the presentation in points.
get Page Element By Id(id) Page Element |null Returns the Page Element with the given ID, or null if none exists.
get Page Height() Number Gets the page height of the slides, layouts, and masters in the presentation in points.
get Page Width() Number Gets the page width of the slides, layouts, and masters in the presentation in points.
get Selection() Selection |null Gets the user's selection in the active presentation.
get Slide By Id(id) Slide |null Returns the Slide with the given ID, or null if none exists.
get Slides() Slide[] Gets the slides in the presentation.
get Url() String Retrieves the URL to access this presentation.
get Viewers() User[] Gets the list of viewers and commenters for this Presentation .
insert Slide(insertionIndex) Slide Inserts a slide at the specified index in the presentation using the Predefined Layout.BLANK predefined layout based on the current master.
insert Slide(insertionIndex, layout) Slide Inserts a slide at the specified index in the presentation using the specified layout based on the current master.
insert Slide(insertionIndex, predefinedLayout) Slide Inserts a slide at the specified index in the presentation using the specified predefined layout based on the current master.
insert Slide(insertionIndex, slide) Slide Inserts a copy of the provided Slide at the specified index in the presentation.
insert Slide(insertionIndex, slide, linkingMode) 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 .
remove Editor(emailAddress) Presentation Removes the given user from the list of editors for the Presentation .
remove Editor(user) Presentation Removes the given user from the list of editors for the Presentation .
remove Viewer(emailAddress) Presentation Removes the given user from the list of viewers and commenters for the Presentation .
remove Viewer(user) Presentation Removes the given user from the list of viewers and commenters for the Presentation .
replace All Text(findText, replaceText) Integer Replaces all instances of text matching find text with replace text.
replace All Text(findText, replaceText, matchCase) Integer Replaces all instances of text matching find text with replace text.
save And Close() void Saves the current Presentation .
set Name(name) void Sets the name or title of the presentation.

Selection

Методы

Метод Тип возвращаемого значения Brief description
get Current Page() Page |null Returns the currently active Page or null if there is no active page.
get Page Element Range() 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.
get Page Range() 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 .
get Selection Type() Selection Type Returns the Selection Type .
get Table Cell Range() 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.
get Text Range() Text Range |null Returns the Text Range that is selected or null if the selection is not of type Selection Type.TEXT .

Selection Type

Характеристики

Свойство Тип Описание
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

Методы

Метод Тип возвращаемого значения Brief description
align On Page(alignmentPosition) Shape Aligns the element to the specified alignment position on the page.
bring Forward() Shape Brings the page element forward on the page by one element.
bring To Front() Shape Brings the page element to the front of the page.
duplicate() Page Element Duplicates the page element.
get Autofit() Autofit |null Returns the Autofit of the text within this shape.
get Border() Border Returns the Border of the shape.
get Connection Sites() 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.
get Content Alignment() Content Alignment Returns the Content Alignment of the text in the shape.
get Description() String Returns the page element's alt text description.
get Fill() Fill Returns the Fill of the shape.
get Height() 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.
get Inherent Height() Number|null Returns the element's inherent height in points.
get Inherent Width() Number|null Returns the element's inherent width in points.
get Left() Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
get Link() Link |null Returns the Link or null if there is no link.
get Object Id() String Returns the unique ID for this object.
get Page Element Type() Page Element Type Returns the page element's type, represented as a Page Element Type enum.
get Parent Group() Group |null Returns the group this page element belongs to, or null if the element is not in a group.
get Parent Page() Page Returns the page this page element is on.
get Parent Placeholder() Page Element |null Returns the parent page element of the placeholder.
get Placeholder Index() Integer|null Returns the placeholder index of the shape.
get Placeholder Type() Placeholder Type Returns the placeholder type of the shape, or Placeholder Type.NONE if the shape is not a placeholder.
get Rotation() Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
get Shape Type() Shape Type Returns the type of the shape.
get Text() Text Range Returns the text content of the shape.
get Title() String Returns the page element's alt text title.
get Top() Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
get Transform() Affine Transform Returns the page element's transform.
get Width() 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.
preconcatenate Transform(transform) Shape Preconcatenates the provided transform to the existing transform of the page element.
remove() void Removes the page element.
remove Link() void Removes a Link .
replace With Image(blobSource) Image Replaces this shape with an image provided by a Blob Source .
replace With Image(blobSource, crop) Image Replaces this shape with an image provided by a Blob Source .
replace With Image(imageUrl) Image Replaces this shape with an image.
replace With Image(imageUrl, crop) Image Replaces this shape with an image.
replace With Sheets Chart(sourceChart) Sheets Chart Replaces this shape with a Google Sheets chart.
replace With Sheets Chart As Image(sourceChart) Image Replaces this shape with an image of a Google Sheets chart.
scale Height(ratio) Shape Scales the element's height by the specified ratio.
scale Width(ratio) Shape Scales the element's width by the specified ratio.
select() void Selects only the Page Element in the active presentation and removes any previous selection.
select(replace) void Selects the Page Element in the active presentation.
send Backward() Shape Sends the page element backward on the page by one element.
send To Back() Shape Sends the page element to the back of the page.
set Content Alignment(contentAlignment) Shape Sets the Content Alignment of the text in the shape.
set Description(description) Shape Sets the page element's alt text description.
set Height(height) Shape Sets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
set Left(left) Shape Sets the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
set Link Slide(slideIndex) Link Sets a Link to the given Slide using the zero-based index of the slide.
set Link Slide(slide) Link Sets a Link to the given Slide , the link is set by the given slide ID.
set Link Slide(slidePosition) Link Sets a Link to the given Slide using the relative position of the slide.
set Link Url(url) Link Sets a Link to the given non-empty URL string.
set Rotation(angle) Shape Sets the element's clockwise rotation angle around its center in degrees.
set Title(title) Shape Sets the page element's alt text title.
set Top(top) Shape Sets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
set Transform(transform) Shape Sets the transform of the page element with the provided transform.
set Width(width) Shape Sets the element's width in points, which is the width of the element's bounding box when the element has no rotation.

Shape Type

Характеристики

Свойство Тип Описание
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 Форма луны.
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.

Sheets Chart

Методы

Метод Тип возвращаемого значения Brief description
align On Page(alignmentPosition) Sheets Chart Aligns the element to the specified alignment position on the page.
as Image() Image |null Returns the chart as an image or null if the chart is not an embedded image.
bring Forward() Sheets Chart Brings the page element forward on the page by one element.
bring To Front() Sheets Chart Brings the page element to the front of the page.
duplicate() Page Element Duplicates the page element.
get Chart Id() Integer Gets the ID of the specific chart in the Google Sheets spreadsheet that is embedded.
get Connection Sites() 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.
get Description() String Returns the page element's alt text description.
get Embed Type() Sheets Chart Embed Type Returns the embed type of the Sheets chart.
get Height() 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.
get Inherent Height() Number|null Returns the element's inherent height in points.
get Inherent Width() Number|null Returns the element's inherent width in points.
get Left() Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
get Link() Link |null Returns the Link or null if there is no link.
get Object Id() String Returns the unique ID for this object.
get Page Element Type() Page Element Type Returns the page element's type, represented as a Page Element Type enum.
get Parent Group() Group |null Returns the group this page element belongs to, or null if the element is not in a group.
get Parent Page() Page Returns the page this page element is on.
get Rotation() Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
get Spreadsheet Id() String Gets the ID of the Google Sheets spreadsheet that contains the source chart.
get Title() String Returns the page element's alt text title.
get Top() Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
get Transform() Affine Transform Returns the page element's transform.
get Width() 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.
preconcatenate Transform(transform) Sheets Chart Preconcatenates the provided transform to the existing transform of the page element.
refresh() void Refreshes the chart by replacing it with the latest version of the chart from Google Sheets.
remove() void Removes the page element.
remove Link() void Removes a Link .
scale Height(ratio) Sheets Chart Scales the element's height by the specified ratio.
scale Width(ratio) Sheets Chart Scales the element's width by the specified ratio.
select() void Selects only the Page Element in the active presentation and removes any previous selection.
select(replace) void Selects the Page Element in the active presentation.
send Backward() Sheets Chart Sends the page element backward on the page by one element.
send To Back() Sheets Chart Sends the page element to the back of the page.
set Description(description) Sheets Chart Sets the page element's alt text description.
set Height(height) 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.
set Left(left) 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.
set Link Slide(slideIndex) Link Sets a Link to the given Slide using the zero-based index of the slide.
set Link Slide(slide) Link Sets a Link to the given Slide , the link is set by the given slide ID.
set Link Slide(slidePosition) Link Sets a Link to the given Slide using the relative position of the slide.
set Link Url(url) Link Sets a Link to the given non-empty URL string.
set Rotation(angle) Sheets Chart Sets the element's clockwise rotation angle around its center in degrees.
set Title(title) Sheets Chart Sets the page element's alt text title.
set Top(top) 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.
set Transform(transform) Sheets Chart Sets the transform of the page element with the provided transform.
set Width(width) 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.

Sheets Chart Embed Type

Характеристики

Свойство Тип Описание
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

Методы

Метод Тип возвращаемого значения Brief description
duplicate() Slide Duplicates the slide.
get Background() Page Background Gets the page's background.
get Color Scheme() Color Scheme Gets the Color Scheme associated with the page.
get Groups() Group[] Returns the list of Group objects on the page.
get Images() Image[] Returns the list of Image objects on the page.
get Layout() Layout |null Gets the layout that the slide is based on or null if the slide is not based on a layout.
get Lines() Line[] Returns the list of Line objects on the page.
get Notes Page() Notes Page Returns the notes page associated with the slide.
get Object Id() String Gets the unique ID for the page.
get Page Element By Id(id) Page Element |null Returns the Page Element on the page with the given ID, or null if none exists.
get Page Elements() Page Element[] Returns the list of Page Element objects rendered on the page.
get Page Type() Page Type Gets the type of the page.
get Placeholder(placeholderType) Page Element |null Returns the placeholder Page Element object for a specified Placeholder Type or null if a matching placeholder is not present.
get Placeholder(placeholderType, placeholderIndex) 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.
get Placeholders() Page Element[] Returns the list of placeholder Page Element objects in the page.
get Shapes() Shape[] Returns the list of Shape objects on the page.
get Sheets Charts() Sheets Chart[] Returns the list of Sheets Chart objects on the page.
get Slide Linking Mode() Slide Linking Mode Returns a Slide Linking Mode indicating if the slide is linked to another slide.
get Source Presentation Id() String Returns the source Presentation ID or null if the slide is not linked.
get Source Slide Object Id() String Returns the source slide ID or null if the slide is not linked.
get Tables() Table[] Returns the list of Table objects on the page.
get Videos() Video[] Returns the list of Video objects on the page.
get Word Arts() Word Art[] Returns the list of Word Art objects on the page.
group(pageElements) Group Groups all the specified page elements.
insert Group(group) Group Inserts a copy of the provided Group on the page.
insert Image(blobSource) Image Inserts an image at the top left corner of the page with a default size from the specified image blob.
insert Image(blobSource, left, top, width, height) Image Inserts an image on the page with the provided position and size from the specified image blob.
insert Image(image) Image Inserts a copy of the provided Image on the page.
insert Image(imageUrl) Image Inserts an image at the top left corner of the page with a default size from the provided URL.
insert Image(imageUrl, left, top, width, height) Image Inserts an image on the page with the provided position and size from the provided URL.
insert Line(line) Line Inserts a copy of the provided Line on the page.
insert Line(lineCategory, startConnectionSite, endConnectionSite) Line Inserts a line on the page connecting two connection sites .
insert Line(lineCategory, startLeft, startTop, endLeft, endTop) Line Inserts a line on the page.
insert Page Element(pageElement) Page Element Inserts a copy of the provided Page Element on the page.
insert Shape(shape) Shape Inserts a copy of the provided Shape on the page.
insert Shape(shapeType) Shape Inserts a shape on the page.
insert Shape(shapeType, left, top, width, height) Shape Inserts a shape on the page.
insert Sheets Chart(sourceChart) Sheets Chart Inserts a Google Sheets chart on the page.
insert Sheets Chart(sourceChart, left, top, width, height) Sheets Chart Inserts a Google Sheets chart on the page with the provided position and size.
insert Sheets Chart(sheetsChart) Sheets Chart Inserts a copy of the provided Sheets Chart on the page.
insert Sheets Chart As Image(sourceChart) Image Inserts a Google Sheets chart as an Image on the page.
insert Sheets Chart As Image(sourceChart, left, top, width, height) Image Inserts a Google Sheets chart as an Image on the page with the provided position and size.
insert Table(numRows, numColumns) Table Inserts a table on the page.
insert Table(numRows, numColumns, left, top, width, height) Table Inserts a table on the page with the provided position and size.
insert Table(table) Table Inserts a copy of the provided Table on the page.
insert Text Box(text) Shape Inserts a text box Shape containing the provided string on the page.
insert Text Box(text, left, top, width, height) Shape Inserts a text box Shape containing the provided string on the page.
insert Video(videoUrl) Video Inserts a video at the top left corner of the page with a default size.
insert Video(videoUrl, left, top, width, height) Video Inserts a video on the page with the provided position and size.
insert Video(video) Video Inserts a copy of the provided Video on the page.
insert Word Art(wordArt) Word Art Inserts a copy of the provided Word Art on the page.
is Skipped() Boolean Returns whether the slide is skipped in the presentation mode.
move(index) void Move the slide to the specified index.
refresh Slide() void Refreshes the slide to reflect any changes made to the linked source slide.
remove() void Removes the page.
replace All Text(findText, replaceText) Integer Replaces all instances of text matching find text with replace text.
replace All Text(findText, replaceText, matchCase) Integer Replaces all instances of text matching find text with replace text.
select As Current Page() void Selects the Page in the active presentation as the current page selection and removes any previous selection.
set Skipped(isSkipped) void Sets whether the slide is skipped in the presentation mode.
unlink() void Unlinks the current Slide from its source slide.

Slide Linking Mode

Характеристики

Свойство Тип Описание
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.

Slide Position

Характеристики

Свойство Тип Описание
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.

Slides App

Характеристики

Свойство Тип Описание
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.

Методы

Метод Тип возвращаемого значения Brief description
create(name) Presentation Creates and opens a new Presentation .
get Active Presentation() Presentation |null Returns the currently active presentation to which the script is container-bound , or null if there is no active presentation.
get Ui() Ui Returns an instance of the presentation's user-interface environment that allows the script to add features like menus, dialogs, and sidebars.
new Affine Transform Builder() Affine Transform Builder Returns a new Affine Transform Builder to build an Affine Transform .
open By Id(id) Presentation Opens the Presentation with the given ID.
open By Url(url) Presentation Opens the Presentation with the given URL.

Solid Fill

Методы

Метод Тип возвращаемого значения Brief description
get Alpha() Number Get the opacity of the color, in the interval from [0, 1.0], where 1.0 means fully opaque.
get Color() Color Get the color of the fill.

Spacing Mode

Характеристики

Свойство Тип Описание
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.

Speaker Spotlight

Методы

Метод Тип возвращаемого значения Brief description
align On Page(alignmentPosition) Speaker Spotlight Aligns the element to the specified alignment position on the page.
bring Forward() Speaker Spotlight Brings the page element forward on the page by one element.
bring To Front() Speaker Spotlight Brings the page element to the front of the page.
duplicate() Page Element Duplicates the page element.
get Border() Border Returns the Border of the speaker spotlight.
get Connection Sites() 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.
get Description() String Returns the page element's alt text description.
get Height() 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.
get Inherent Height() Number|null Returns the element's inherent height in points.
get Inherent Width() Number|null Returns the element's inherent width in points.
get Left() Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
get Mask Shape Type() Shape Type |null Returns the Shape Type of the mask applied to the speaker spotlight, or null if there is no mask.
get Object Id() String Returns the unique ID for this object.
get Page Element Type() Page Element Type Returns the page element's type, represented as a Page Element Type enum.
get Parent Group() Group |null Returns the group this page element belongs to, or null if the element is not in a group.
get Parent Page() Page Returns the page this page element is on.
get Rotation() Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
get Title() String Returns the page element's alt text title.
get Top() Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
get Transform() Affine Transform Returns the page element's transform.
get Width() 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.
preconcatenate Transform(transform) Speaker Spotlight Preconcatenates the provided transform to the existing transform of the page element.
remove() void Removes the page element.
scale Height(ratio) Speaker Spotlight Scales the element's height by the specified ratio.
scale Width(ratio) Speaker Spotlight Scales the element's width by the specified ratio.
select() void Selects only the Page Element in the active presentation and removes any previous selection.
select(replace) void Selects the Page Element in the active presentation.
send Backward() Speaker Spotlight Sends the page element backward on the page by one element.
send To Back() Speaker Spotlight Sends the page element to the back of the page.
set Description(description) Speaker Spotlight Sets the page element's alt text description.
set Height(height) 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.
set Left(left) 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.
set Rotation(angle) Speaker Spotlight Sets the element's clockwise rotation angle around its center in degrees.
set Title(title) Speaker Spotlight Sets the page element's alt text title.
set Top(top) 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.
set Transform(transform) Speaker Spotlight Sets the transform of the page element with the provided transform.
set Width(width) 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

Методы

Метод Тип возвращаемого значения Brief description
align On Page(alignmentPosition) Table Aligns the element to the specified alignment position on the page.
append Column() Table Column Appends a new column to the right of the last column of the table.
append Row() Table Row Appends a new row below the last row of the table.
bring Forward() Table Brings the page element forward on the page by one element.
bring To Front() Table Brings the page element to the front of the page.
duplicate() Page Element Duplicates the page element.
get Cell(rowIndex, columnIndex) Table Cell Returns the specified cell in the table.
get Column(columnIndex) Table Column Returns the specified column in the table.
get Connection Sites() 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.
get Description() String Returns the page element's alt text description.
get Height() 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.
get Inherent Height() Number|null Returns the element's inherent height in points.
get Inherent Width() Number|null Returns the element's inherent width in points.
get Left() Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
get Num Columns() Integer Returns the number of columns in the table.
get Num Rows() Integer Returns the number of rows in the table.
get Object Id() String Returns the unique ID for this object.
get Page Element Type() Page Element Type Returns the page element's type, represented as a Page Element Type enum.
get Parent Group() Group |null Returns the group this page element belongs to, or null if the element is not in a group.
get Parent Page() Page Returns the page this page element is on.
get Rotation() Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
get Row(rowIndex) Table Row Returns the specified row in the table.
get Title() String Returns the page element's alt text title.
get Top() Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
get Transform() Affine Transform Returns the page element's transform.
get Width() 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.
insert Column(index) Table Column Inserts a new column at the specified index of the table.
insert Row(index) Table Row Inserts a new row at the specified index of the table.
preconcatenate Transform(transform) Table Preconcatenates the provided transform to the existing transform of the page element.
remove() void Removes the page element.
scale Height(ratio) Table Scales the element's height by the specified ratio.
scale Width(ratio) Table Scales the element's width by the specified ratio.
select() void Selects only the Page Element in the active presentation and removes any previous selection.
select(replace) void Selects the Page Element in the active presentation.
send Backward() Table Sends the page element backward on the page by one element.
send To Back() Table Sends the page element to the back of the page.
set Description(description) Table Sets the page element's alt text description.
set Height(height) Table Sets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
set Left(left) Table Sets the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
set Rotation(angle) Table Sets the element's clockwise rotation angle around its center in degrees.
set Title(title) Table Sets the page element's alt text title.
set Top(top) Table Sets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
set Transform(transform) Table Sets the transform of the page element with the provided transform.
set Width(width) Table Sets the element's width in points, which is the width of the element's bounding box when the element has no rotation.

Table Cell

Методы

Метод Тип возвращаемого значения Brief description
get Column Index() Integer Returns the 0-based column index of the table cell.
get Column Span() Integer Returns the column span of the table cell.
get Content Alignment() Content Alignment Returns the Content Alignment of the text in the table cell.
get Fill() Fill Returns the fill of the table cell.
get Head Cell() Table Cell |null Returns the head cell of this table cell.
get Merge State() Cell Merge State Returns the merge state of the table cell.
get Parent Column() Table Column Returns the table column containing the current cell.
get Parent Row() Table Row Returns the table row containing the current cell.
get Parent Table() Table Returns the table containing the current cell.
get Row Index() Integer Returns the 0-based row index of the table cell.
get Row Span() Integer Returns the row span of the table cell.
get Text() Text Range Returns the text content of the table cell.
set Content Alignment(contentAlignment) Table Cell Sets the Content Alignment of the text in the table cell.

Table Cell Range

Методы

Метод Тип возвращаемого значения Brief description
get Table Cells() Table Cell[] Returns the list of Table Cell instances.

Table Column

Методы

Метод Тип возвращаемого значения Brief description
get Cell(cellIndex) Table Cell Returns the cell at the specified index.
get Index() Integer Returns the 0-based index of the column.
get Num Cells() Integer Returns the number of cells in this column.
get Parent Table() Table Returns the table containing the current column.
get Width() Number Returns the width of the column in points.
remove() void Removes the table column.

Table Row

Методы

Метод Тип возвращаемого значения Brief description
get Cell(cellIndex) Table Cell Returns the cell at the specified index.
get Index() Integer Returns the 0-based index of the row.
get Minimum Height() Number Returns the minimum height of the row in points.
get Num Cells() Integer Returns the number of cells in this row.
get Parent Table() Table Returns the table containing the current row.
remove() void Removes the table row.

Text Baseline Offset

Характеристики

Свойство Тип Описание
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.

Text Direction

Характеристики

Свойство Тип Описание
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.

Text Range

Методы

Метод Тип возвращаемого значения Brief description
append Paragraph(text) Paragraph Appends a paragraph at the end of the text range.
append Range(textRange) Text Range Appends a copy of the provided text range to the end of the current text range.
append Range(textRange, matchSourceFormatting) Text Range Appends a copy of the provided text range to the end of the current text range.
append Text(text) Text Range Appends text at the end of the text range.
as Rendered String() 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.
as String() String Returns the raw text bounded by this range of the associated shape or table cell.
clear() void Clears the text bounded by this range.
clear(startOffset, endOffset) void Clears the text bounded by the start and end offsets in the range.
find(pattern) Text Range[] Returns all the ranges matching the search pattern in the current text range.
find(pattern, startOffset) Text Range[] Returns all the ranges matching the search pattern in the current text range starting from the start offset.
get Auto Texts() Auto Text[] Returns the auto texts within the current text range.
get End Index() Integer Returns the exclusive, 0-based index for the last character in this range.
get Length() Integer Returns the number of characters in this range.
get Links() 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.
get List Paragraphs() Paragraph[] Returns the paragraphs in lists that overlap the current text range.
get List Style() List Style Returns the List Style of the current text range.
get Paragraph Style() Paragraph Style Returns the Paragraph Style of the current text range.
get Paragraphs() Paragraph[] Returns the paragraphs that overlap the current text range.
get Range(startOffset, endOffset) Text Range Returns a new Text Range covering part of the range from which it is derived.
get Runs() Text Range[] Returns the text runs that overlap the current text range.
get Start Index() Integer Returns the inclusive, 0-based index for the first character in this range.
get Text Style() Text Style |null Returns the text style of the range, or null if the range is empty.
insert Paragraph(startOffset, text) Paragraph Inserts a paragraph at the start offset.
insert Range(startOffset, textRange) Text Range Inserts a copy of the provided text range at the start offset.
insert Range(startOffset, textRange, matchSourceFormatting) Text Range Inserts a copy of the provided text range at the start offset.
insert Text(startOffset, text) Text Range Inserts text at the start offset.
is Empty() Boolean Returns true if there are no characters in this range, and returns false otherwise.
replace All Text(findText, replaceText) Integer Replaces all instances of text matching find text with replace text.
replace All Text(findText, replaceText, matchCase) Integer Replaces all instances of text matching find text with replace text.
select() void Selects only the Text Range in the active presentation and removes any previous selection.
set Text(newText) Text Range Sets the text bounded by this range of the associated shape or table cell.

Text Style

Методы

Метод Тип возвращаемого значения Brief description
get Background Color() Color |null Returns the background color of the text, or null if there are multiple styles on the text.
get Baseline Offset() Text Baseline Offset |null Returns the vertical offset of text from its normal position, or null if there are multiple styles on the text.
get Font Family() String|null Returns the font family of the text, or null if there are multiple styles on the text.
get Font Size() Number|null Returns the font size of the text in points, or null if there are multiple styles on the text.
get Font Weight() Integer|null Returns the font weight of the text, or null if there are multiple styles on the text.
get Foreground Color() Color |null Returns the foreground color of the text, or null if there are multiple styles on the text.
get Link() 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.
has Link() 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.
is Background Transparent() 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.
is Bold() Boolean|null Returns true if the text is rendered as bold, false if not, or null if there are multiple styles on the text.
is Italic() Boolean|null Returns true if the text is italicized, false if not, or null if there are multiple styles on the text.
is Small Caps() 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.
is Strikethrough() Boolean|null Returns true if the text is struck through, false if not, or null if there are multiple styles on the text.
is Underline() Boolean|null Returns true if the text is underlined, false if not, or null if there are multiple styles on the text.
remove Link() Text Style Removes a Link .
set Background Color(color) Text Style Sets the background color of the text.
set Background Color(red, green, blue) Text Style Sets the background color of the text to the given RGB values from 0 to 255.
set Background Color(hexColor) Text Style Sets the background color of the text to the given hex color string.
set Background Color(color) Text Style Sets the background color of the text to the given Theme Color Type .
set Background Color Transparent() Text Style Sets the background color of the text to transparent.
set Baseline Offset(offset) Text Style Sets the vertical offset of the text relative to its normal position.
set Bold(bold) Text Style Sets whether the text should be rendered as bold.
set Font Family(fontFamily) Text Style Sets the font family of the text .
set Font Family And Weight(fontFamily, fontWeight) Text Style Sets the font family and weight of the text.
set Font Size(fontSize) Text Style Sets the font size of the text, in points.
set Foreground Color(foregroundColor) Text Style Sets the foreground color of the text.
set Foreground Color(red, green, blue) Text Style Sets the foreground color of the text to the given RGB values from 0 to 255.
set Foreground Color(hexColor) Text Style Sets the foreground color of the text to the given hex color string.
set Foreground Color(color) Text Style Sets the foreground color of the text to the given Theme Color Type .
set Italic(italic) Text Style Sets the whether the text is italicized.
set Link Slide(slideIndex) Text Style Sets a Link to the given Slide using the zero-based index of the slide.
set Link Slide(slide) Text Style Sets a Link to the given Slide , the link is set by the given slide ID.
set Link Slide(slidePosition) Text Style Sets a Link to the given Slide using the relative position of the slide.
set Link Url(url) Text Style Sets a Link to the given non-empty URL string.
set Small Caps(smallCaps) Text Style Sets whether the text is rendered in small capital letters.
set Strikethrough(strikethrough) Text Style Sets whether the text is struck through.
set Underline(underline) Text Style Sets whether the text is underlined.

Theme Color

Методы

Метод Тип возвращаемого значения Brief description
get Color Type() Color Type Get the type of this color.
get Theme Color Type() Theme Color Type Get the theme color type of this color.

Theme Color Type

Характеристики

Свойство Тип Описание
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

Методы

Метод Тип возвращаемого значения Brief description
align On Page(alignmentPosition) Video Aligns the element to the specified alignment position on the page.
bring Forward() Video Brings the page element forward on the page by one element.
bring To Front() Video Brings the page element to the front of the page.
duplicate() Page Element Duplicates the page element.
get Border() Border Returns the Border of the video.
get Connection Sites() 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.
get Description() String Returns the page element's alt text description.
get Height() 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.
get Inherent Height() Number|null Returns the element's inherent height in points.
get Inherent Width() Number|null Returns the element's inherent width in points.
get Left() Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
get Object Id() String Returns the unique ID for this object.
get Page Element Type() Page Element Type Returns the page element's type, represented as a Page Element Type enum.
get Parent Group() Group |null Returns the group this page element belongs to, or null if the element is not in a group.
get Parent Page() Page Returns the page this page element is on.
get Rotation() Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
get Source() Video Source Type Gets the video source.
get Thumbnail Url() String Gets an URL to the video thumbnail.
get Title() String Returns the page element's alt text title.
get Top() Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
get Transform() Affine Transform Returns the page element's transform.
get Url() String|null Gets an URL to the video.
get Video Id() String Gets the video source's unique identifier for this video.
get Width() 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.
preconcatenate Transform(transform) Video Preconcatenates the provided transform to the existing transform of the page element.
remove() void Removes the page element.
scale Height(ratio) Video Scales the element's height by the specified ratio.
scale Width(ratio) Video Scales the element's width by the specified ratio.
select() void Selects only the Page Element in the active presentation and removes any previous selection.
select(replace) void Selects the Page Element in the active presentation.
send Backward() Video Sends the page element backward on the page by one element.
send To Back() Video Sends the page element to the back of the page.
set Description(description) Video Sets the page element's alt text description.
set Height(height) Video Sets the element's height in points, which is the height of the element's bounding box when the element has no rotation.
set Left(left) Video Sets the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
set Rotation(angle) Video Sets the element's clockwise rotation angle around its center in degrees.
set Title(title) Video Sets the page element's alt text title.
set Top(top) Video Sets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
set Transform(transform) Video Sets the transform of the page element with the provided transform.
set Width(width) Video Sets the element's width in points, which is the width of the element's bounding box when the element has no rotation.

Video Source Type

Характеристики

Свойство Тип Описание
UNSUPPORTED Enum A video source type that is not supported.
YOUTUBE Enum You Tube video.

Word Art

Методы

Метод Тип возвращаемого значения Brief description
align On Page(alignmentPosition) Word Art Aligns the element to the specified alignment position on the page.
bring Forward() Word Art Brings the page element forward on the page by one element.
bring To Front() Word Art Brings the page element to the front of the page.
duplicate() Page Element Duplicates the page element.
get Connection Sites() 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.
get Description() String Returns the page element's alt text description.
get Height() 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.
get Inherent Height() Number|null Returns the element's inherent height in points.
get Inherent Width() Number|null Returns the element's inherent width in points.
get Left() Number Returns the element's horizontal position in points, measured from the upper-left corner of the page when the element has no rotation.
get Link() Link |null Returns the Link or null if there is no link.
get Object Id() String Returns the unique ID for this object.
get Page Element Type() Page Element Type Returns the page element's type, represented as a Page Element Type enum.
get Parent Group() Group |null Returns the group this page element belongs to, or null if the element is not in a group.
get Parent Page() Page Returns the page this page element is on.
get Rendered Text() String Gets the text that is rendered as word art.
get Rotation() Number Returns the element's clockwise rotation angle around its center in degrees, where zero degrees means no rotation.
get Title() String Returns the page element's alt text title.
get Top() Number Gets the element's vertical position in points, measured from the upper-left corner of the page when the element has no rotation.
get Transform() Affine Transform Returns the page element's transform.
get Width() 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.
preconcatenate Transform(transform) Word Art Preconcatenates the provided transform to the existing transform of the page element.
remove() void Removes the page element.
remove Link() void Removes a Link .
scale Height(ratio) Word Art Scales the element's height by the specified ratio.
scale Width(ratio) Word Art Scales the element's width by the specified ratio.
select() void Selects only the Page Element in the active presentation and removes any previous selection.
select(replace) void Selects the Page Element in the active presentation.
send Backward() Word Art Sends the page element backward on the page by one element.
send To Back() Word Art Sends the page element to the back of the page.
set Description(description) Word Art Sets the page element's alt text description.
set Height(height) 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.
set Left(left) 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.
set Link Slide(slideIndex) Link Sets a Link to the given Slide using the zero-based index of the slide.
set Link Slide(slide) Link Sets a Link to the given Slide , the link is set by the given slide ID.
set Link Slide(slidePosition) Link Sets a Link to the given Slide using the relative position of the slide.
set Link Url(url) Link Sets a Link to the given non-empty URL string.
set Rotation(angle) Word Art Sets the element's clockwise rotation angle around its center in degrees.
set Title(title) Word Art Sets the page element's alt text title.
set Top(top) 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.
set Transform(transform) Word Art Sets the transform of the page element with the provided transform.
set Width(width) 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.