Поделиться через


PowerPoint.RequestContext class

Объект RequestContext упрощает запросы к приложению PowerPoint. Так как надстройка Office и приложение PowerPoint выполняются в двух разных процессах, контекст запроса необходим для получения доступа к объектной модели PowerPoint из надстройки.

Extends

Комментарии

Примеры

// *.run methods automatically create an OfficeExtension.ClientRequestContext
// object to work with the Office file.
await PowerPoint.run(async (context) => {
  const presentation = context.presentation;
  // Interact with the PowerPoint presentation...
});

Конструкторы

(constructor)(url)

Создает новый экземпляр RequestContext класса

Свойства

application
presentation

Сведения о конструкторе

(constructor)(url)

Создает новый экземпляр RequestContext класса

constructor(url?: string);

Параметры

url

string

Сведения о свойстве

application

readonly application: Application;

Значение свойства

presentation

readonly presentation: Presentation;

Значение свойства