powerpoint package
クラス
| PowerPoint.Adjustments |
図形の調整値を表します。 |
| PowerPoint.Application |
プレゼンテーションを管理するPowerPoint アプリケーションを表します。 |
| PowerPoint.Binding |
プレゼンテーションで定義されている Office.js バインドを表します。 |
| PowerPoint.BindingCollection |
プレゼンテーションに含まれるすべてのバインド オブジェクトのコレクションを表します。 |
| PowerPoint.Border |
テーブル セルの罫線のプロパティを表します。 |
| PowerPoint.Borders |
テーブル セルの罫線を表します。 |
| PowerPoint.BulletFormat |
PowerPoint.ParagraphFormat に添付されているテキストの箇条書きの書式設定プロパティを表します。 |
| PowerPoint.CustomProperty |
カスタム プロパティを表します。 |
| PowerPoint.CustomPropertyCollection |
カスタム プロパティのコレクション。 |
| PowerPoint.CustomXmlPart |
カスタム XML パーツ オブジェクトを表します。 |
| PowerPoint.CustomXmlPartCollection |
カスタム XML パーツのコレクション。 |
| PowerPoint.CustomXmlPartScopedCollection |
カスタム XML パーツのスコープ付きコレクション。 スコープ付きコレクションは、(名前空間によるフィルター処理など) 何らかの操作の結果です。 スコープ付きコレクションは、これ以上スコープを設定できません。 |
| PowerPoint.DocumentProperties |
プレゼンテーション プロパティを表します。 |
| PowerPoint.Hyperlink |
1 つのハイパーリンクを表します。 |
| PowerPoint.HyperlinkCollection |
ハイパーリンクのコレクションを表します。 |
| PowerPoint.HyperlinkScopedCollection |
ハイパーリンクのスコープ付きコレクションを表します。 |
| PowerPoint.Margins |
テーブル セルの余白を表します。 |
| PowerPoint.PageSetup |
プレゼンテーションのページ設定情報を表します。 |
| PowerPoint.ParagraphFormat |
PowerPoint.TextRange に添付されているテキストの段落書式プロパティを表します。 |
| PowerPoint.PlaceholderFormat |
|
| PowerPoint.Presentation |
|
| PowerPoint.RequestContext |
RequestContext オブジェクトは、PowerPoint アプリケーションへの要求を容易にします。 Office アドインとPowerPoint アプリケーションは 2 つの異なるプロセスで実行されるため、アドインからPowerPoint オブジェクト モデルにアクセスするには、要求コンテキストが必要です。 |
| PowerPoint.Shape |
スライド内の 1 つの図形を表します。 |
| PowerPoint.ShapeCollection |
図形のコレクションを表します。 |
| PowerPoint.ShapeFill |
図形オブジェクトの塗りつぶしの書式設定を表します。 |
| PowerPoint.ShapeFont |
図形の TextRange オブジェクトのフォント名、フォント サイズ、色などのフォント属性を表します。 |
| PowerPoint.ShapeGroup |
プレゼンテーション内の図形グループを表します。 対応する Shape オブジェクトを取得するには、 |
| PowerPoint.ShapeLineFormat |
図形オブジェクトの線の書式を表します。 画像と幾何学的図形の場合、線の書式設定は図形の境界線を表します。 |
| PowerPoint.ShapeScopedCollection |
図形のコレクションを表します。 |
| PowerPoint.Slide |
プレゼンテーションの 1 つのスライドを表します。 |
| PowerPoint.SlideBackground |
スライドの背景を表します。 |
| PowerPoint.SlideBackgroundFill |
スライドの背景オブジェクトの塗りつぶしの書式設定を表します。 |
| PowerPoint.SlideBackgroundGradientFill |
PowerPoint.SlideBackground グラデーション塗りつぶしプロパティを表します。 |
| PowerPoint.SlideBackgroundPatternFill |
PowerPoint.SlideBackground パターンの塗りつぶしプロパティを表します。 |
| PowerPoint.SlideBackgroundPictureOrTextureFill |
PowerPoint.SlideBackground の図またはテクスチャ塗りつぶしのプロパティを表します。 |
| PowerPoint.SlideBackgroundSolidFill |
PowerPoint.SlideBackground ソリッド塗りつぶしプロパティを表します。 |
| PowerPoint.SlideCollection |
プレゼンテーション内のスライドのコレクションを表します。 |
| PowerPoint.SlideLayout |
スライドのレイアウトを表します。 |
| PowerPoint.SlideLayoutBackground |
スライド レイアウトの背景を表します。 |
| PowerPoint.SlideLayoutCollection |
スライドのスライド マスターによって提供されるレイアウトのコレクションを表します。 |
| PowerPoint.SlideMaster |
スライドのスライド マスターを表します。 |
| PowerPoint.SlideMasterBackground |
スライド マスターの背景を表します。 |
| PowerPoint.SlideMasterCollection |
プレゼンテーション内のスライド マスターのコレクションを表します。 |
| PowerPoint.SlideScopedCollection |
プレゼンテーション内のスライドのコレクションを表します。 |
| PowerPoint.Table |
テーブルを表します。 |
| PowerPoint.TableCell |
テーブルを表します。 |
| PowerPoint.TableCellCollection |
テーブル セルのコレクションを表します。 |
| PowerPoint.TableColumn |
テーブル内にある 1 つの列を表します。 |
| PowerPoint.TableColumnCollection |
テーブル列のコレクションを表します。 |
| PowerPoint.TableRow |
テーブル内の行を表します。 |
| PowerPoint.TableRowCollection |
テーブル行のコレクションを表します。 |
| PowerPoint.TableStyleSettings |
使用可能なテーブル スタイル設定を表します。 |
| PowerPoint.Tag |
スライド内の 1 つのタグを表します。 |
| PowerPoint.TagCollection |
タグのコレクションを表します。 |
| PowerPoint.TextFrame |
図形オブジェクトのテキスト フレームを表します。 |
| PowerPoint.TextRange |
図形に結合するテキストや、テキストを操作するためのプロパティおよびメソッドが含まれます。 |
| PowerPoint.ThemeColorScheme |
テーマの配色を表します。 |
インターフェイス
| PowerPoint.AddSlideOptions |
新しいスライドを追加するときに使用できるオプションを表します。 |
| PowerPoint.BorderProperties |
テーブル セルの罫線のプロパティを表します。 |
| PowerPoint.FillProperties |
テーブル セルの塗りつぶしの書式を表します。 |
| PowerPoint.FontProperties |
フォント名、サイズ、色などのフォント属性を表します。 |
| PowerPoint.HyperlinkAddOptions |
PowerPoint.Hyperlink を追加するときに使用できるオプションを表します。 |
| PowerPoint.InsertSlideOptions |
スライドを挿入するときに使用できるオプションを表します。 |
| PowerPoint.Interfaces.AdjustmentsData |
|
| PowerPoint.Interfaces.AdjustmentsLoadOptions |
図形の調整値を表します。 |
| PowerPoint.Interfaces.BindingCollectionData |
|
| PowerPoint.Interfaces.BindingCollectionLoadOptions |
プレゼンテーションに含まれるすべてのバインド オブジェクトのコレクションを表します。 |
| PowerPoint.Interfaces.BindingCollectionUpdateData |
|
| PowerPoint.Interfaces.BindingData |
|
| PowerPoint.Interfaces.BindingLoadOptions |
プレゼンテーションで定義されている Office.js バインドを表します。 |
| PowerPoint.Interfaces.BorderData |
|
| PowerPoint.Interfaces.BorderLoadOptions |
テーブル セルの罫線のプロパティを表します。 |
| PowerPoint.Interfaces.BordersData |
|
| PowerPoint.Interfaces.BordersLoadOptions |
テーブル セルの罫線を表します。 |
| PowerPoint.Interfaces.BorderUpdateData |
|
| PowerPoint.Interfaces.BulletFormatData |
|
| PowerPoint.Interfaces.BulletFormatLoadOptions |
PowerPoint.ParagraphFormat に添付されているテキストの箇条書きの書式設定プロパティを表します。 |
| PowerPoint.Interfaces.BulletFormatUpdateData |
|
| PowerPoint.Interfaces.CollectionLoadOptions |
コレクションのメンバーのサブセットのみのプロパティを読み込む方法を提供します。 |
| PowerPoint.Interfaces.CustomPropertyCollectionData |
|
| PowerPoint.Interfaces.CustomPropertyCollectionLoadOptions |
カスタム プロパティのコレクション。 |
| PowerPoint.Interfaces.CustomPropertyCollectionUpdateData |
|
| PowerPoint.Interfaces.CustomPropertyData |
|
| PowerPoint.Interfaces.CustomPropertyLoadOptions |
カスタム プロパティを表します。 |
| PowerPoint.Interfaces.CustomPropertyUpdateData |
|
| PowerPoint.Interfaces.CustomXmlPartCollectionData |
|
| PowerPoint.Interfaces.CustomXmlPartCollectionLoadOptions |
カスタム XML パーツのコレクション。 |
| PowerPoint.Interfaces.CustomXmlPartCollectionUpdateData |
|
| PowerPoint.Interfaces.CustomXmlPartData |
|
| PowerPoint.Interfaces.CustomXmlPartLoadOptions |
カスタム XML パーツ オブジェクトを表します。 |
| PowerPoint.Interfaces.CustomXmlPartScopedCollectionData |
|
| PowerPoint.Interfaces.CustomXmlPartScopedCollectionLoadOptions |
カスタム XML パーツのスコープ付きコレクション。 スコープ付きコレクションは、(名前空間によるフィルター処理など) 何らかの操作の結果です。 スコープ付きコレクションは、これ以上スコープを設定できません。 |
| PowerPoint.Interfaces.CustomXmlPartScopedCollectionUpdateData |
|
| PowerPoint.Interfaces.DocumentPropertiesData |
|
| PowerPoint.Interfaces.DocumentPropertiesLoadOptions |
プレゼンテーション プロパティを表します。 |
| PowerPoint.Interfaces.DocumentPropertiesUpdateData |
|
| PowerPoint.Interfaces.HyperlinkCollectionData |
|
| PowerPoint.Interfaces.HyperlinkCollectionLoadOptions |
ハイパーリンクのコレクションを表します。 |
| PowerPoint.Interfaces.HyperlinkCollectionUpdateData |
|
| PowerPoint.Interfaces.HyperlinkData |
|
| PowerPoint.Interfaces.HyperlinkLoadOptions |
1 つのハイパーリンクを表します。 |
| PowerPoint.Interfaces.HyperlinkScopedCollectionData |
|
| PowerPoint.Interfaces.HyperlinkScopedCollectionLoadOptions |
ハイパーリンクのスコープ付きコレクションを表します。 |
| PowerPoint.Interfaces.HyperlinkScopedCollectionUpdateData |
|
| PowerPoint.Interfaces.HyperlinkUpdateData |
|
| PowerPoint.Interfaces.MarginsData |
|
| PowerPoint.Interfaces.MarginsLoadOptions |
テーブル セルの余白を表します。 |
| PowerPoint.Interfaces.MarginsUpdateData |
|
| PowerPoint.Interfaces.PageSetupData |
|
| PowerPoint.Interfaces.PageSetupLoadOptions |
プレゼンテーションのページ設定情報を表します。 |
| PowerPoint.Interfaces.PageSetupUpdateData |
|
| PowerPoint.Interfaces.ParagraphFormatData |
|
| PowerPoint.Interfaces.ParagraphFormatLoadOptions |
PowerPoint.TextRange に添付されているテキストの段落書式プロパティを表します。 |
| PowerPoint.Interfaces.ParagraphFormatUpdateData |
|
| PowerPoint.Interfaces.PlaceholderFormatData |
|
| PowerPoint.Interfaces.PlaceholderFormatLoadOptions |
|
| PowerPoint.Interfaces.PresentationData |
|
| PowerPoint.Interfaces.PresentationLoadOptions |
|
| PowerPoint.Interfaces.ShapeCollectionData |
|
| PowerPoint.Interfaces.ShapeCollectionLoadOptions |
図形のコレクションを表します。 |
| PowerPoint.Interfaces.ShapeCollectionUpdateData |
|
| PowerPoint.Interfaces.ShapeData |
|
| PowerPoint.Interfaces.ShapeFillData |
|
| PowerPoint.Interfaces.ShapeFillLoadOptions |
図形オブジェクトの塗りつぶしの書式設定を表します。 |
| PowerPoint.Interfaces.ShapeFillUpdateData |
|
| PowerPoint.Interfaces.ShapeFontData |
|
| PowerPoint.Interfaces.ShapeFontLoadOptions |
図形の TextRange オブジェクトのフォント名、フォント サイズ、色などのフォント属性を表します。 |
| PowerPoint.Interfaces.ShapeFontUpdateData |
|
| PowerPoint.Interfaces.ShapeGroupData |
|
| PowerPoint.Interfaces.ShapeGroupLoadOptions |
プレゼンテーション内の図形グループを表します。 対応する Shape オブジェクトを取得するには、 |
| PowerPoint.Interfaces.ShapeLineFormatData |
|
| PowerPoint.Interfaces.ShapeLineFormatLoadOptions |
図形オブジェクトの線の書式を表します。 画像と幾何学的図形の場合、線の書式設定は図形の境界線を表します。 |
| PowerPoint.Interfaces.ShapeLineFormatUpdateData |
|
| PowerPoint.Interfaces.ShapeLoadOptions |
スライド内の 1 つの図形を表します。 |
| PowerPoint.Interfaces.ShapeScopedCollectionData |
|
| PowerPoint.Interfaces.ShapeScopedCollectionLoadOptions |
図形のコレクションを表します。 |
| PowerPoint.Interfaces.ShapeScopedCollectionUpdateData |
|
| PowerPoint.Interfaces.ShapeUpdateData |
|
| PowerPoint.Interfaces.SlideBackgroundData |
|
| PowerPoint.Interfaces.SlideBackgroundFillData |
|
| PowerPoint.Interfaces.SlideBackgroundFillLoadOptions |
スライドの背景オブジェクトの塗りつぶしの書式設定を表します。 |
| PowerPoint.Interfaces.SlideBackgroundGradientFillData |
|
| PowerPoint.Interfaces.SlideBackgroundGradientFillLoadOptions |
PowerPoint.SlideBackground グラデーション塗りつぶしプロパティを表します。 |
| PowerPoint.Interfaces.SlideBackgroundGradientFillUpdateData |
|
| PowerPoint.Interfaces.SlideBackgroundLoadOptions |
スライドの背景を表します。 |
| PowerPoint.Interfaces.SlideBackgroundPatternFillData |
|
| PowerPoint.Interfaces.SlideBackgroundPatternFillLoadOptions |
PowerPoint.SlideBackground パターンの塗りつぶしプロパティを表します。 |
| PowerPoint.Interfaces.SlideBackgroundPatternFillUpdateData |
|
| PowerPoint.Interfaces.SlideBackgroundPictureOrTextureFillData |
|
| PowerPoint.Interfaces.SlideBackgroundPictureOrTextureFillLoadOptions |
PowerPoint.SlideBackground の図またはテクスチャ塗りつぶしのプロパティを表します。 |
| PowerPoint.Interfaces.SlideBackgroundPictureOrTextureFillUpdateData |
|
| PowerPoint.Interfaces.SlideBackgroundSolidFillData |
|
| PowerPoint.Interfaces.SlideBackgroundSolidFillLoadOptions |
PowerPoint.SlideBackground ソリッド塗りつぶしプロパティを表します。 |
| PowerPoint.Interfaces.SlideBackgroundSolidFillUpdateData |
|
| PowerPoint.Interfaces.SlideBackgroundUpdateData |
|
| PowerPoint.Interfaces.SlideCollectionData |
|
| PowerPoint.Interfaces.SlideCollectionLoadOptions |
プレゼンテーション内のスライドのコレクションを表します。 |
| PowerPoint.Interfaces.SlideCollectionUpdateData |
|
| PowerPoint.Interfaces.SlideData |
|
| PowerPoint.Interfaces.SlideLayoutBackgroundData |
|
| PowerPoint.Interfaces.SlideLayoutBackgroundLoadOptions |
スライド レイアウトの背景を表します。 |
| PowerPoint.Interfaces.SlideLayoutBackgroundUpdateData |
|
| PowerPoint.Interfaces.SlideLayoutCollectionData |
|
| PowerPoint.Interfaces.SlideLayoutCollectionLoadOptions |
スライドのスライド マスターによって提供されるレイアウトのコレクションを表します。 |
| PowerPoint.Interfaces.SlideLayoutCollectionUpdateData |
|
| PowerPoint.Interfaces.SlideLayoutData |
|
| PowerPoint.Interfaces.SlideLayoutLoadOptions |
スライドのレイアウトを表します。 |
| PowerPoint.Interfaces.SlideLoadOptions |
プレゼンテーションの 1 つのスライドを表します。 |
| PowerPoint.Interfaces.SlideMasterBackgroundData |
|
| PowerPoint.Interfaces.SlideMasterBackgroundLoadOptions |
スライド マスターの背景を表します。 |
| PowerPoint.Interfaces.SlideMasterCollectionData |
|
| PowerPoint.Interfaces.SlideMasterCollectionLoadOptions |
プレゼンテーション内のスライド マスターのコレクションを表します。 |
| PowerPoint.Interfaces.SlideMasterCollectionUpdateData |
|
| PowerPoint.Interfaces.SlideMasterData |
|
| PowerPoint.Interfaces.SlideMasterLoadOptions |
スライドのスライド マスターを表します。 |
| PowerPoint.Interfaces.SlideScopedCollectionData |
|
| PowerPoint.Interfaces.SlideScopedCollectionLoadOptions |
プレゼンテーション内のスライドのコレクションを表します。 |
| PowerPoint.Interfaces.SlideScopedCollectionUpdateData |
|
| PowerPoint.Interfaces.TableCellCollectionData |
|
| PowerPoint.Interfaces.TableCellCollectionLoadOptions |
テーブル セルのコレクションを表します。 |
| PowerPoint.Interfaces.TableCellCollectionUpdateData |
|
| PowerPoint.Interfaces.TableCellData |
|
| PowerPoint.Interfaces.TableCellLoadOptions |
テーブルを表します。 |
| PowerPoint.Interfaces.TableCellUpdateData |
|
| PowerPoint.Interfaces.TableColumnCollectionData |
|
| PowerPoint.Interfaces.TableColumnCollectionLoadOptions |
テーブル列のコレクションを表します。 |
| PowerPoint.Interfaces.TableColumnCollectionUpdateData |
|
| PowerPoint.Interfaces.TableColumnData |
|
| PowerPoint.Interfaces.TableColumnLoadOptions |
テーブル内にある 1 つの列を表します。 |
| PowerPoint.Interfaces.TableColumnUpdateData |
|
| PowerPoint.Interfaces.TableData |
|
| PowerPoint.Interfaces.TableLoadOptions |
テーブルを表します。 |
| PowerPoint.Interfaces.TableRowCollectionData |
|
| PowerPoint.Interfaces.TableRowCollectionLoadOptions |
テーブル行のコレクションを表します。 |
| PowerPoint.Interfaces.TableRowCollectionUpdateData |
|
| PowerPoint.Interfaces.TableRowData |
|
| PowerPoint.Interfaces.TableRowLoadOptions |
テーブル内の行を表します。 |
| PowerPoint.Interfaces.TableRowUpdateData |
|
| PowerPoint.Interfaces.TableStyleSettingsData |
|
| PowerPoint.Interfaces.TableStyleSettingsLoadOptions |
使用可能なテーブル スタイル設定を表します。 |
| PowerPoint.Interfaces.TableStyleSettingsUpdateData |
|
| PowerPoint.Interfaces.TagCollectionData |
|
| PowerPoint.Interfaces.TagCollectionLoadOptions |
タグのコレクションを表します。 |
| PowerPoint.Interfaces.TagCollectionUpdateData |
|
| PowerPoint.Interfaces.TagData |
|
| PowerPoint.Interfaces.TagLoadOptions |
スライド内の 1 つのタグを表します。 |
| PowerPoint.Interfaces.TagUpdateData |
|
| PowerPoint.Interfaces.TextFrameData |
|
| PowerPoint.Interfaces.TextFrameLoadOptions |
図形オブジェクトのテキスト フレームを表します。 |
| PowerPoint.Interfaces.TextFrameUpdateData |
|
| PowerPoint.Interfaces.TextRangeData |
|
| PowerPoint.Interfaces.TextRangeLoadOptions |
図形に結合するテキストや、テキストを操作するためのプロパティおよびメソッドが含まれます。 |
| PowerPoint.Interfaces.TextRangeUpdateData |
|
| PowerPoint.ShapeAddOptions |
図形を追加するときに使用できるオプションを表します。 |
| PowerPoint.ShapeGetImageOptions |
図形のイメージを取得するときに使用できるオプションを表します。 イメージは、目的の寸法に合わせてスケーリングされます。 幅と高さが指定されていない場合は、図形の真のサイズが使用されます。 幅または高さの 1 つだけを指定した場合、もう一方は縦横比を維持するために計算されます。 大きすぎる場合、結果の寸法は自動的にサポートされる最大サイズにクランプされます。 |
| PowerPoint.SlideBackgroundGradientFillOptions |
PowerPoint.SlideBackground グラデーションの塗りつぶしを設定するために使用できるオプションを表します。 |
| PowerPoint.SlideBackgroundPatternFillOptions |
PowerPoint.SlideBackground パターンの塗りつぶしを設定するために使用できるオプションを表します。 |
| PowerPoint.SlideBackgroundPictureOrTextureFillOptions |
PowerPoint.SlideBackground 画像またはテクスチャ塗りつぶしオプションを表します。 |
| PowerPoint.SlideBackgroundSolidFillOptions |
PowerPoint.SlideBackground 塗りつぶしを設定するために使用できるオプションを表します。 |
| PowerPoint.SlideGetImageOptions |
スライドの画像を取得するときに使用できるオプションを表します。 |
| PowerPoint.TableAddOptions |
テーブルを追加するときに使用できるオプションを表します。 |
| PowerPoint.TableCellBorders |
テーブル セルの罫線を表します。 |
| PowerPoint.TableCellMargins |
テーブル セルの余白を表します。 |
| PowerPoint.TableCellProperties |
更新するテーブル セルのプロパティを表します。 |
| PowerPoint.TableClearOptions |
テーブルをクリアするときに使用できるオプションを表します。 |
| PowerPoint.TableColumnProperties |
テーブル列のプロパティを提供します。 |
| PowerPoint.TableMergedAreaProperties |
テーブル内のセルのマージされた領域のプロパティを表します。 |
| PowerPoint.TableRowProperties |
テーブル行のプロパティを提供します。 |
| PowerPoint.TextRun |
同じフォント属性を持つ 1 つ以上の文字のシーケンスを表します。 |
列挙型
関数
| Power |
新しいプレゼンテーションを作成して開きます。 必要に応じて、プレゼンテーションに Base64 でエンコードされた .pptx ファイルを事前入力できます。 |
| Power |
新しい RequestContext を使用して、PowerPoint オブジェクト モデルに対してアクションを実行するバッチ スクリプトを実行します。 promise が解決されると、実行中に自動的に割り当てられた追跡対象オブジェクトが解放されます。 |
| Power |
以前に作成した API オブジェクトの RequestContext を使用して、PowerPoint オブジェクト モデルに対してアクションを実行するバッチ スクリプトを実行します。 promise が解決されると、実行中に自動的に割り当てられた追跡対象オブジェクトが解放されます。 |
| Power |
以前に作成した API オブジェクトの RequestContext を使用して、PowerPoint オブジェクト モデルに対してアクションを実行するバッチ スクリプトを実行します。 |
関数の詳細
PowerPoint.createPresentation(base64File)
新しいプレゼンテーションを作成して開きます。 必要に応じて、プレゼンテーションに Base64 でエンコードされた .pptx ファイルを事前入力できます。
[ API set: PowerPointApi 1.1 ]
export function createPresentation(base64File?: string): Promise<void>;
パラメーター
- base64File
-
string
省略可能。 Base64 でエンコードされた .pptx ファイル。 既定値は null です。 文字列の最大長は 71,680,000 文字です。
戻り値
Promise<void>
例
const myFile = <HTMLInputElement>document.getElementById("file");
const reader = new FileReader();
reader.onload = (event) => {
// Remove the metadata before the Base64-encoded string.
const startIndex = reader.result.toString().indexOf("base64,");
const copyBase64 = reader.result.toString().substr(startIndex + 7);
PowerPoint.createPresentation(copyBase64);
};
// Read in the file as a data URL so we can parse the Base64-encoded string.
reader.readAsDataURL(myFile.files[0]);
PowerPoint.run(batch)
新しい RequestContext を使用して、PowerPoint オブジェクト モデルに対してアクションを実行するバッチ スクリプトを実行します。 promise が解決されると、実行中に自動的に割り当てられた追跡対象オブジェクトが解放されます。
export function run<T>(batch: (context: PowerPoint.RequestContext) => OfficeExtension.IPromise<T>): OfficeExtension.IPromise<T>;
パラメーター
- batch
-
(context: PowerPoint.RequestContext) => OfficeExtension.IPromise<T>
RequestContext を受け取り、promise を返す関数 (通常は "context.sync()" の結果のみ)。 context パラメーターを使用すると、PowerPoint アプリケーションへの要求が容易になります。 Office アドインとPowerPoint アプリケーションは 2 つの異なるプロセスで実行されるため、アドインからPowerPoint オブジェクト モデルにアクセスするには RequestContext が必要です。
戻り値
例
// *.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...
});
PowerPoint.run(object, batch)
以前に作成した API オブジェクトの RequestContext を使用して、PowerPoint オブジェクト モデルに対してアクションを実行するバッチ スクリプトを実行します。 promise が解決されると、実行中に自動的に割り当てられた追跡対象オブジェクトが解放されます。
export function run<T>(object: OfficeExtension.ClientObject, batch: (context: PowerPoint.RequestContext) => OfficeExtension.IPromise<T>): OfficeExtension.IPromise<T>;
パラメーター
- object
- OfficeExtension.ClientObject
以前に作成した API オブジェクト。 バッチでは、渡されたオブジェクトと同じ RequestContext が使用されます。つまり、オブジェクトに適用された変更はすべて "context.sync()" によって取得されます。
- batch
-
(context: PowerPoint.RequestContext) => OfficeExtension.IPromise<T>
RequestContext を受け取り、promise を返す関数 (通常は "context.sync()" の結果のみ)。 context パラメーターを使用すると、PowerPoint アプリケーションへの要求が容易になります。 Office アドインとPowerPoint アプリケーションは 2 つの異なるプロセスで実行されるため、アドインからPowerPoint オブジェクト モデルにアクセスするには RequestContext が必要です。
戻り値
PowerPoint.run(objects, batch)
以前に作成した API オブジェクトの RequestContext を使用して、PowerPoint オブジェクト モデルに対してアクションを実行するバッチ スクリプトを実行します。
export function run<T>(objects: OfficeExtension.ClientObject[], batch: (context: PowerPoint.RequestContext) => OfficeExtension.IPromise<T>): OfficeExtension.IPromise<T>;
パラメーター
- objects
以前に作成した API オブジェクトの配列。 配列は、すべてのオブジェクトが同じコンテキストを共有することを確認するために検証されます。 バッチでは、この共有 RequestContext が使用されます。これは、これらのオブジェクトに適用された変更が "context.sync()" によって取得されることを意味します。
- batch
-
(context: PowerPoint.RequestContext) => OfficeExtension.IPromise<T>
RequestContext を受け取り、promise を返す関数 (通常は "context.sync()" の結果のみ)。 context パラメーターを使用すると、PowerPoint アプリケーションへの要求が容易になります。 Office アドインとPowerPoint アプリケーションは 2 つの異なるプロセスで実行されるため、アドインからPowerPoint オブジェクト モデルにアクセスするには RequestContext が必要です。