Freigeben über


Neuigkeiten in der Word-JavaScript-API 1.2

WordApi 1.2 hat Unterstützung für Inlinebilder hinzugefügt.

API-Liste

In der folgenden Tabelle sind die APIs in Word JavaScript-API-Anforderungssatz 1.2 aufgeführt. Informationen zum Anzeigen der API-Referenzdokumentation für alle APIs, die von Word JavaScript-API-Anforderungssatz 1.2 oder früher unterstützt werden, finden Sie unter Word-APIs im Anforderungssatz 1.2 oder früher.

Klasse Felder Beschreibung
Body insertInlinePictureFromBase64(base64EncodedImage: string, insertLocation: Word. InsertLocation.start | Word. InsertLocation.end | "Start" | "Ende") Fügt in den Textkörper an der angegebenen Position ein Bild ein.
ContentControl insertInlinePictureFromBase64(base64EncodedImage: string, insertLocation: Word. InsertLocation.replace | Word. InsertLocation.start | Word. InsertLocation.end | "Ersetzen" | "Start" | "Ende") Fügt an der angegebenen Position ein eingebundenes Bild in das Inhaltssteuerelement ein.
InlinePicture delete() Löscht das Inlinebild aus dem Dokument.
insertBreak(breakType: Word. BreakType | "Seite" | "Weiter" | "SectionNext" | "SectionContinuous" | "SectionEven" | "SectionOdd" | "Line", insertLocation: Word. InsertLocation.before | Word. InsertLocation.after | "Vor" | "Nach") Fügt an der angegebenen Position im Hauptdokument einen Umbruch ein.
insertFileFromBase64(base64File: string, insertLocation: Word. InsertLocation.before | Word. InsertLocation.after | "Vor" | "Nach") Fügt an der angegebenen Position ein Dokument ein.
insertHtml(html: string, insertLocation: Word. InsertLocation.before | Word. InsertLocation.after | "Vor" | "Nach") Fügt an der angegebenen Position HTML-Code ein.
insertInlinePictureFromBase64(base64EncodedImage: string, insertLocation: Word. InsertLocation.replace | Word. InsertLocation.before | Word. InsertLocation.after | "Ersetzen" | "Vor" | "Nach") Fügt an der angegebenen Position ein Inlinebild ein.
insertOoxml(ooxml: string, insertLocation: Word. InsertLocation.before | Word. InsertLocation.after | "Vor" | "Nach") Fügt an der angegebenen Position OOXML-Code ein.
insertParagraph(paragraphText: string, insertLocation: Word. InsertLocation.before | Word. InsertLocation.after | "Vor" | "Nach") Fügt an der angegebenen Position einen Absatz ein.
insertText(text: string, insertLocation: Word. InsertLocation.before | Word. InsertLocation.after | "Vor" | "Nach") Fügt an der angegebenen Position Text ein.
paragraph Ruft den übergeordneten Absatz ab, der das Inlinebild enthält.
select(selectionMode?: Word. SelectionMode) Wählt das Inlinebild aus.
Range inlinePictures Ruft die Auflistung von InlinePicture -Objekten im Bereich ab.
insertInlinePictureFromBase64(base64EncodedImage: string, insertLocation: Word. InsertLocation | "Ersetzen" | "Start" | "Ende" | "Vor" | "Nach") Fügt an der angegebenen Position ein Bild ein.

Siehe auch