PowerPoint.RequestContext class
Объект RequestContext упрощает запросы к приложению PowerPoint. Так как надстройка Office и приложение PowerPoint выполняются в двух разных процессах, контекст запроса необходим для получения доступа к объектной модели PowerPoint из надстройки.
Комментарии
Используется
- PowerPoint: запуск
- PowerPoint.Adjustments: контекст
- PowerPoint.Application: контекст
- PowerPoint.Binding: контекст
- PowerPoint.BindingCollection: контекст
- PowerPoint.Border: контекст
- PowerPoint.Borders: контекст
- PowerPoint.BulletFormat: контекст
- PowerPoint.CustomProperty: контекст
- PowerPoint.CustomPropertyCollection: контекст
- PowerPoint.CustomXmlPart: контекст
- PowerPoint.CustomXmlPartCollection: context
- PowerPoint.CustomXmlPartScopedCollection: context
- PowerPoint.DocumentProperties: контекст
- PowerPoint.Graphic: контекст
- PowerPoint.Hyperlink: контекст
- PowerPoint.HyperlinkCollection: контекст
- PowerPoint.HyperlinkScopedCollection: контекст
- PowerPoint.Margins: контекст
- PowerPoint.PageSetup: контекст
- PowerPoint.ParagraphFormat: контекст
- PowerPoint.PlaceholderFormat: контекст
- PowerPoint.Presentation: контекст
- PowerPoint.Shape: контекст
- PowerPoint.ShapeCollection: контекст
- PowerPoint.ShapeFill: контекст
- PowerPoint.ShapeFont: контекст
- PowerPoint.ShapeGroup: контекст
- PowerPoint.ShapeLineFormat: контекст
- PowerPoint.ShapeScopedCollection: контекст
- PowerPoint.Slide: контекст
- PowerPoint.SlideBackground: контекст
- PowerPoint.SlideBackgroundFill: контекст
- PowerPoint.SlideBackgroundGradientFill: контекст
- PowerPoint.SlideBackgroundPatternFill: контекст
- PowerPoint.SlideBackgroundPictureOrTextureFill: context
- PowerPoint.SlideBackgroundSolidFill: контекст
- PowerPoint.SlideCollection: контекст
- PowerPoint.SlideLayout: контекст
- PowerPoint.SlideLayoutBackground: контекст
- PowerPoint.SlideLayoutCollection: контекст
- PowerPoint.SlideMaster: контекст
- PowerPoint.SlideMasterBackground: контекст
- PowerPoint.SlideMasterCollection: контекст
- PowerPoint.SlideScopedCollection: контекст
- PowerPoint.Table: контекст
- PowerPoint.TableCell: контекст
- PowerPoint.TableCellCollection: контекст
- PowerPoint.TableColumn: контекст
- PowerPoint.TableColumnCollection: контекст
- PowerPoint.TableRow: контекст
- PowerPoint.TableRowCollection: контекст
- PowerPoint.TableStyleSettings: контекст
- PowerPoint.Tag: контекст
- PowerPoint.TagCollection: контекст
- PowerPoint.TextFrame: контекст
- PowerPoint.TextRange: контекст
- PowerPoint.ThemeColorScheme: контекст
Примеры
// *.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) | Создает новый экземпляр |
Свойства
| application | |
| presentation |
Сведения о конструкторе
(constructor)(url)
Создает новый экземпляр RequestContext класса
constructor(url?: string);
Параметры
- url
-
string