File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -24337,6 +24337,21 @@ Word.Document#settings:member:
2433724337 }
2433824338 }
2433924339 });
24340+ Word.Document#windows:member:
24341+ - >-
24342+ // Link to full sample:
24343+ https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/35-ranges/get-pages.yaml
24344+
24345+
24346+ await Word.run(async (context) => {
24347+ // Gets the document windows.
24348+ const windows: Word.WindowCollection = context.document.windows;
24349+ windows.load("windows/items/length");
24350+
24351+ await context.sync();
24352+
24353+ console.log(`Number of windows for this document: ${windows.items.length}`);
24354+ });
2434024355Word.DocumentCompareOptions:interface:
2434124356 - >-
2434224357 // Link to full sample:
@@ -29064,6 +29079,24 @@ Word.Window#activePane:member:
2906429079 console.log(`Page index: ${pagesIndexes[i].index}`);
2906529080 }
2906629081 });
29082+ Word.Window#panes:member:
29083+ - >-
29084+ // Link to full sample:
29085+ https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/35-ranges/get-pages.yaml
29086+
29087+
29088+ await Word.run(async (context) => {
29089+ // Gets all the panes in the active document window.
29090+
29091+ // Get the active window.
29092+ const activeWindow: Word.Window = context.document.activeWindow;
29093+ activeWindow.load("panes/items/length");
29094+
29095+ await context.sync();
29096+
29097+ const panes: Word.PaneCollection = activeWindow.panes;
29098+ console.log(`Number of panes in the current document window: ${panes.items.length}`);
29099+ });
2906729100Word.WindowCollection:class:
2906829101 - >-
2906929102 // Link to full sample:
You can’t perform that action at this time.
0 commit comments