Word JavaScript API 1.2 の新機能

WordApi 1.2 では、インライン画像のサポートが追加されました。

API リスト

次の表に、Word JavaScript API 要件セット 1.2 の API を示します。 Word JavaScript API 要件セット 1.2 以前でサポートされているすべての API の API リファレンス ドキュメントを表示するには、「 要件セット 1.2 以前の Word API」を参照してください。

クラス フィールド 説明
Body insertInlinePictureFromBase64(base64EncodedImage: string, insertLocation: Word.InsertLocation.start |Word.InsertLocation.end |"Start" |"End") 画像を本文の指定された位置に挿入します。
ContentControl insertInlinePictureFromBase64(base64EncodedImage: string, insertLocation: Word.InsertLocation.replace |Word.InsertLocation.start |Word.InsertLocation.end |"Replace" |"Start" |"End") コンテンツ コントロール内の指定された位置にインライン画像を挿入します。
InlinePicture delete() ドキュメントからインライン画像を削除します。
insertBreak(breakType: Word.BreakType |"Page" |"次へ" |"SectionNext" |"SectionContinuous" |"SectionEven" |"SectionOdd" |"Line", insertLocation: Word.InsertLocation.before |Word.InsertLocation.after |"Before" |"After") メイン文書の指定した位置に、区切りを挿入します。
insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation.before |Word.InsertLocation.after |"Before" |"After") 指定した位置に文書を挿入します。
insertHtml(html: string, insertLocation: Word.InsertLocation.before |Word.InsertLocation.after |"Before" |"After") 指定した位置に HTML を挿入します。
insertInlinePictureFromBase64(base64EncodedImage: string, insertLocation: Word.InsertLocation.replace |Word.InsertLocation.before |Word.InsertLocation.after |"Replace" |"Before" |"After") 指定された位置にインライン画像を挿入します。
insertOoxml(ooxml: string, insertLocation: Word.InsertLocation.before |Word.InsertLocation.after |"Before" |"After") 指定した位置に OOXML を挿入します。
insertParagraph(paragraphText: string, insertLocation: Word.InsertLocation.before |Word.InsertLocation.after |"Before" |"After") 指定した位置に、段落を挿入します。
insertText(text: string, insertLocation: Word.InsertLocation.before |Word.InsertLocation.after |"Before" |"After") 指定した位置にテキストを挿入します。
段落 インライン イメージを含む親段落を取得します。
select(selectionMode?: Word.SelectionMode) インライン画像を選択します。
Range inlinePictures 範囲に含まれるインライン画像オブジェクトのコレクションを取得します。
insertInlinePictureFromBase64(base64EncodedImage: string, insertLocation: Word.InsertLocation |"Replace" |"Start" |"End" |"Before" |"After") 指定された位置に画像を挿入します。

関連項目