Merge pull request #31519 from AlexJerabek/AlexJ-UpdatePreview

[office-js-preview] Update with doc edits from office-js
This commit is contained in:
Nathan Shively-Sanders
2018-12-18 14:13:48 -08:00
committed by GitHub
2 changed files with 114 additions and 146 deletions
+109 -141
View File
@@ -1157,6 +1157,13 @@ declare namespace Office {
* This is best for user experience and performance.
*/
displayInIframe?: boolean
/**
* Determines if the pop-up blocker dialog will be shown to the user. Defaults to true.
*
* `true` - The framework displays a pop-up to trigger the navigation and avoid the browser's pop-up blocker.
* `false` - The dialog will not be shown and the developer must handle pop-ups (by providing a user interface artifact to trigger the navigation).
*/
promptBeforeOpen?: boolean;
/**
* A user-defined item of any type that is returned, unchanged, in the asyncContext property of the AsyncResult object that is passed to a callback.
*/
@@ -3275,10 +3282,10 @@ declare namespace Office {
* <table>
* <tr><th> </th><th> Office for Windows desktop </th><th> Office Online (in browser) </th><th> Office for iPad </th><th> Office for Mac </th></tr>
* <tr><td><strong> Access </strong></td><td> </td><td> Y </td><td> </td><td> </td></tr>
* <tr><td><strong> Excel </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td><</tr>
* <tr><td><strong> OneNote </strong></td><td> </td><td> Y </td><td> </td><td> </td><</tr>
* <tr><td><strong> PowerPoint </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td><</tr>
* <tr><td><strong> Word </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td><</tr>
* <tr><td><strong> Excel </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td></tr>
* <tr><td><strong> OneNote </strong></td><td> </td><td> Y </td><td> </td><td> </td></tr>
* <tr><td><strong> PowerPoint </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td></tr>
* <tr><td><strong> Word </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td></tr>
* </table>
*/
settings: Settings;
@@ -4692,8 +4699,8 @@ declare namespace Office {
* <table>
* <tr><th> </th><th> Office for Windows desktop </th><th> Office Online (in browser) </th><th> Office for iPad </th><th> Office for Mac </th></tr>
* <tr><td><strong> Access </strong></td><td> </td><td> Y </td><td> </td><td> </td></tr>
* <tr><td><strong> Excel </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td><</tr>
* <tr><td><strong> Word </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td><</tr>
* <tr><td><strong> Excel </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td></tr>
* <tr><td><strong> Word </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td></tr>
* </table>
*/
columnCount: number;
@@ -4714,8 +4721,8 @@ declare namespace Office {
* <table>
* <tr><th> </th><th> Office for Windows desktop </th><th> Office Online (in browser) </th><th> Office for iPad </th><th> Office for Mac </th></tr>
* <tr><td><strong> Access </strong></td><td> </td><td> Y </td><td> </td><td> </td></tr>
* <tr><td><strong> Excel </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td><</tr>
* <tr><td><strong> Word </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td><</tr>
* <tr><td><strong> Excel </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td></tr>
* <tr><td><strong> Word </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td></tr>
* </table>
*/
hasHeaders: boolean;
@@ -4749,8 +4756,8 @@ declare namespace Office {
* <table>
* <tr><th> </th><th> Office for Windows desktop </th><th> Office Online (in browser) </th><th> Office for iPad </th><th> Office for Mac </th></tr>
* <tr><td><strong> Access </strong></td><td> </td><td> Y </td><td> </td><td> </td></tr>
* <tr><td><strong> Excel </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td><</tr>
* <tr><td><strong> Word </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td><</tr>
* <tr><td><strong> Excel </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td></tr>
* <tr><td><strong> Word </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td></tr>
* </table>
*/
rowCount: number;
@@ -4788,8 +4795,8 @@ declare namespace Office {
* <table>
* <tr><th> </th><th> Office for Windows desktop </th><th> Office Online (in browser) </th><th> Office for iPad </th><th> Office for Mac </th></tr>
* <tr><td><strong> Access </strong></td><td> </td><td> Y </td><td> </td><td> </td></tr>
* <tr><td><strong> Excel </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td><</tr>
* <tr><td><strong> Word </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td><</tr>
* <tr><td><strong> Excel </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td></tr>
* <tr><td><strong> Word </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td></tr>
* </table>
*
* @param tableData An array of arrays ("matrix") or a TableData object that contains one or more columns of data to add to the table. Required.
@@ -4828,8 +4835,8 @@ declare namespace Office {
* <table>
* <tr><th> </th><th> Office for Windows desktop </th><th> Office Online (in browser) </th><th> Office for iPad </th><th> Office for Mac </th></tr>
* <tr><td><strong> Access </strong></td><td> </td><td> Y </td><td> </td><td> </td></tr>
* <tr><td><strong> Excel </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td><</tr>
* <tr><td><strong> Word </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td><</tr>
* <tr><td><strong> Excel </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td></tr>
* <tr><td><strong> Word </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td></tr>
* </table>
*
* @param rows An array of arrays ("matrix") or a TableData object that contains one or more rows of data to add to the table. Required.
@@ -4856,8 +4863,8 @@ declare namespace Office {
* <table>
* <tr><th> </th><th> Office for Windows desktop </th><th> Office Online (in browser) </th><th> Office for iPad </th><th> Office for Mac </th></tr>
* <tr><td><strong> Access </strong></td><td> </td><td> Y </td><td> </td><td> </td></tr>
* <tr><td><strong> Excel </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td><</tr>
* <tr><td><strong> Word </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td><</tr>
* <tr><td><strong> Excel </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td></tr>
* <tr><td><strong> Word </strong></td><td> Y </td><td> Y </td><td> Y </td><td> Y </td></tr>
* </table>
*
* @param options Provides an option for preserving context data of any type, unchanged, for use in a callback.
@@ -9414,7 +9421,7 @@ declare namespace Office {
}
/**
* The InternetHeaders object represents properties that are preserved after the item leaves Exchange and converted to a MIME message.
* The InternetHeaders object represents properties that are preserved after the message item leaves Exchange and is converted to a MIME message.
* These properties are stored as x-headers in the MIME message.
*
* InternetHeaders are stored as key/value pairs on a per-item basis.
@@ -15218,7 +15225,7 @@ declare namespace Office {
* <tr><td>{@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}</td><td>Compose or read</td></tr></table>
*
* Item IDs retrieved via EWS or via the itemId property use a different format than the format used by REST APIs (such as the
* {@link https://docs.microsoft.com/previous-versions/office/office-365-api/api/version-2.0/mail-rest-operations | Outlook Mail API} or the {@link http://graph.microsoft.io/ | Microsoft Graph}.
* {@link https://docs.microsoft.com/previous-versions/office/office-365-api/api/version-2.0/mail-rest-operations | Outlook Mail API} or the {@link https://graph.microsoft.io/ | Microsoft Graph}.
* The convertToRestId method converts an EWS-formatted ID into the proper format for REST.
*
* @param itemId An item ID formatted for Exchange Web Services (EWS)
@@ -33620,8 +33627,6 @@ declare namespace Excel {
* [Api set: ExcelApi 1.7]
*/
class StyleCollection extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/** Gets the loaded child items in this collection. */
readonly items: Excel.Style[];
/**
@@ -33660,10 +33665,6 @@ declare namespace Excel {
load(option?: Excel.Interfaces.StyleCollectionLoadOptions & Excel.Interfaces.CollectionLoadOptions): Excel.StyleCollection;
load(option?: string | string[]): Excel.StyleCollection;
load(option?: OfficeExtension.LoadOption): Excel.StyleCollection;
/**
* Overrides the JavaScript `toJSON()` method in order to provide more useful output when an API object is passed to `JSON.stringify()`. (`JSON.stringify`, in turn, calls the `toJSON` method of the object that is passed to it.)
* Whereas the original `Excel.StyleCollection` object is an API object, the `toJSON` method returns a plain JavaScript object (typed as `Excel.Interfaces.StyleCollectionData`) that contains an "items" array with shallow copies of any loaded properties from the collection's items.
*/
toJSON(): Excel.Interfaces.StyleCollectionData;
}
/**
@@ -73337,8 +73338,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class Application extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Gets the collection of notebooks that are open in the OneNote application instance. In OneNote Online, only one notebook at a time is open in the application instance. Read-only.
@@ -73467,8 +73466,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class InkAnalysis extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Gets the parent page object. Read-only.
@@ -73535,8 +73532,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class InkAnalysisParagraph extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Reference to the parent InkAnalysisPage. Read-only.
@@ -73610,8 +73605,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class InkAnalysisParagraphCollection extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/** Gets the loaded child items in this collection. */
readonly items: OneNote.InkAnalysisParagraph[];
/**
@@ -73674,8 +73667,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class InkAnalysisLine extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Reference to the parent InkAnalysisParagraph. Read-only.
@@ -73749,8 +73740,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class InkAnalysisLineCollection extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/** Gets the loaded child items in this collection. */
readonly items: OneNote.InkAnalysisLine[];
/**
@@ -73813,8 +73802,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class InkAnalysisWord extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Reference to the parent InkAnalysisLine. Read-only.
@@ -73902,8 +73889,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class InkAnalysisWordCollection extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/** Gets the loaded child items in this collection. */
readonly items: OneNote.InkAnalysisWord[];
/**
@@ -73966,8 +73951,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class FloatingInk extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Gets the strokes of the FloatingInk object. Read-only.
@@ -74027,8 +74010,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class InkStroke extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Gets the ID of the InkStroke object. Read-only.
@@ -74081,8 +74062,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class InkStrokeCollection extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/** Gets the loaded child items in this collection. */
readonly items: OneNote.InkStroke[];
/**
@@ -74145,8 +74124,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class InkWord extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* The parent paragraph containing the ink word. Read-only.
@@ -74213,8 +74190,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class InkWordCollection extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/** Gets the loaded child items in this collection. */
readonly items: OneNote.InkWord[];
/**
@@ -74277,8 +74252,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class Notebook extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* The section groups in the notebook. Read only
@@ -74391,8 +74364,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class NotebookCollection extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/** Gets the loaded child items in this collection. */
readonly items: OneNote.Notebook[];
/**
@@ -74464,8 +74435,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class SectionGroup extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Gets the notebook that contains the section group. Read-only.
@@ -74585,8 +74554,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class SectionGroupCollection extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/** Gets the loaded child items in this collection. */
readonly items: OneNote.SectionGroup[];
/**
@@ -74658,8 +74625,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class Section extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Gets the notebook that contains the section. Read-only.
@@ -74822,8 +74787,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class SectionCollection extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/** Gets the loaded child items in this collection. */
readonly items: OneNote.Section[];
/**
@@ -74895,8 +74858,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class Page extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* The collection of PageContent objects on the page. Read only
@@ -74982,7 +74943,7 @@ declare namespace OneNote {
*
* @param left The left position of the top, left corner of the Outline.
* @param top The top position of the top, left corner of the Outline.
* @param html An HTML string that describes the visual presentation of the Outline. See {@link https://docs.microsoft.com/en-us/office/dev/add-ins/onenote/onenote-add-ins-page-content#supported-html | Supported HTML} for the OneNote add-ins JavaScript API.
* @param html An HTML string that describes the visual presentation of the Outline. See {@link https://docs.microsoft.com/office/dev/add-ins/onenote/onenote-add-ins-page-content#supported-html | Supported HTML} for the OneNote add-ins JavaScript API.
*/
addOutline(left: number, top: number, html: string): OneNote.Outline;
/**
@@ -75089,8 +75050,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class PageCollection extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/** Gets the loaded child items in this collection. */
readonly items: OneNote.Page[];
/**
@@ -75162,8 +75121,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class PageContent extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Gets the Image in the PageContent object. Throws an exception if PageContentType is not Image.
@@ -75279,8 +75236,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class PageContentCollection extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/** Gets the loaded child items in this collection. */
readonly items: OneNote.PageContent[];
/**
@@ -75343,8 +75298,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class Outline extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Gets the PageContent object that contains the Outline. This object defines the position of the Outline on the page. Read-only.
@@ -75372,7 +75325,7 @@ declare namespace OneNote {
*
* [Api set: OneNoteApi 1.1]
*
* @param html The HTML string to append. See {@link https://docs.microsoft.com/en-us/office/dev/add-ins/onenote/onenote-add-ins-page-content#supported-html | Supported HTML} for the OneNote add-ins JavaScript API.
* @param html The HTML string to append. See {@link https://docs.microsoft.com/office/dev/add-ins/onenote/onenote-add-ins-page-content#supported-html | Supported HTML} for the OneNote add-ins JavaScript API.
*/
appendHtml(html: string): void;
/**
@@ -75451,8 +75404,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class Paragraph extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Gets the Image object in the Paragraph. Throws an exception if ParagraphType is not Image. Read-only.
@@ -75592,7 +75543,7 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*
* @param insertLocation The location of new contents relative to the current Paragraph.
* @param html An HTML string that describes the visual presentation of the content. See {@link https://docs.microsoft.com/en-us/office/dev/add-ins/onenote/onenote-add-ins-page-content#supported-html | Supported HTML} for the OneNote add-ins JavaScript API.
* @param html An HTML string that describes the visual presentation of the content. See {@link https://docs.microsoft.com/office/dev/add-ins/onenote/onenote-add-ins-page-content#supported-html | Supported HTML} for the OneNote add-ins JavaScript API.
*/
insertHtmlAsSibling(insertLocation: OneNote.InsertLocation, html: string): void;
/**
@@ -75602,7 +75553,7 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*
* @param insertLocation The location of new contents relative to the current Paragraph.
* @param html An HTML string that describes the visual presentation of the content. See {@link https://docs.microsoft.com/en-us/office/dev/add-ins/onenote/onenote-add-ins-page-content#supported-html | Supported HTML} for the OneNote add-ins JavaScript API.
* @param html An HTML string that describes the visual presentation of the content. See {@link https://docs.microsoft.com/office/dev/add-ins/onenote/onenote-add-ins-page-content#supported-html | Supported HTML} for the OneNote add-ins JavaScript API.
*/
insertHtmlAsSibling(insertLocation: "Before" | "After", html: string): void;
/**
@@ -75711,8 +75662,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class ParagraphCollection extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/** Gets the loaded child items in this collection. */
readonly items: OneNote.Paragraph[];
/**
@@ -75775,8 +75724,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class NoteTag extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Gets the Id of the NoteTag object. Read-only.
@@ -75836,8 +75783,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class RichText extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Gets the Paragraph object that contains the RichText object. Read-only.
@@ -75912,8 +75857,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class Image extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Gets the PageContent object that contains the Image. Throws if the Image is not a direct child of a PageContent. This object defines the position of the Image on the page. Read-only.
@@ -76030,8 +75973,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class Table extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Gets the Paragraph object that contains the Table object. Read-only.
@@ -76189,8 +76130,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class TableRow extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Gets the cells in the row. Read-only.
@@ -76299,8 +76238,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class TableRowCollection extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/** Gets the loaded child items in this collection. */
readonly items: OneNote.TableRow[];
/**
@@ -76363,8 +76300,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class TableCell extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/**
*
* Gets the collection of Paragraph objects in the TableCell. Read-only.
@@ -76427,7 +76362,7 @@ declare namespace OneNote {
*
* [Api set: OneNoteApi 1.1]
*
* @param html The HTML string to append. See {@link https://docs.microsoft.com/en-us/office/dev/add-ins/onenote/onenote-add-ins-page-content#supported-html | Supported HTML} for the OneNote add-ins JavaScript API.
* @param html The HTML string to append. See {@link https://docs.microsoft.com/office/dev/add-ins/onenote/onenote-add-ins-page-content#supported-html | Supported HTML} for the OneNote add-ins JavaScript API.
*/
appendHtml(html: string): void;
/**
@@ -76506,8 +76441,6 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
class TableCellCollection extends OfficeExtension.ClientObject {
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
context: RequestContext;
/** Gets the loaded child items in this collection. */
readonly items: OneNote.TableCell[];
/**
@@ -77021,6 +76954,13 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
page?: OneNote.Interfaces.PageData;
/**
*
* Gets the ink analysis paragraphs in this page. Read-only.
*
* [Api set: OneNoteApi 1.1]
*/
paragraphs?: OneNote.Interfaces.InkAnalysisParagraphData[];
/**
*
* Gets the ID of the InkAnalysis object. Read-only.
@@ -77901,6 +77841,7 @@ declare namespace OneNote {
interface TableCellCollectionData {
items?: OneNote.Interfaces.TableCellData[];
}
/**
*
* Represents the top-level object that contains all globally addressable OneNote objects such as notebooks, the active notebook, and the active section.
@@ -77932,6 +77873,13 @@ declare namespace OneNote {
* [Api set: OneNoteApi 1.1]
*/
page?: OneNote.Interfaces.PageLoadOptions;
/**
*
* Gets the ink analysis paragraphs in this page.
*
* [Api set: OneNoteApi 1.1]
*/
paragraphs?: OneNote.Interfaces.InkAnalysisParagraphCollectionLoadOptions;
/**
*
* Gets the ID of the InkAnalysis object. Read-only.
@@ -79577,18 +79525,25 @@ declare namespace OneNote {
* @param batch - A function that takes in an OneNote.RequestContext and returns a promise (typically, just the result of "context.sync()"). The context parameter facilitates requests to the OneNote application. Since the Office add-in and the OneNote application run in two different processes, the request context is required to get access to the OneNote object model from the add-in.
*/
function run<T>(batch: (context: OneNote.RequestContext) => Promise<T>): Promise<T>;
/**
* Executes a batch script that performs actions on the OneNote object model, using the request context of a previously-created API object.
* @param object - A previously-created API object. The batch will use the same request context as the passed-in object, which means that any changes applied to the object will be picked up by "context.sync()".
* @param batch - A function that takes in an OneNote.RequestContext and returns a promise (typically, just the result of "context.sync()"). When the promise is resolved, any tracked objects that were automatically allocated during execution will be released.
*/
function run<T>(object: OfficeExtension.ClientObject, batch: (context: OneNote.RequestContext) => Promise<T>): Promise<T>;
/**
* Executes a batch script that performs actions on the OneNote object model, using the request context of previously-created API objects.
* @param object - An array of previously-created API objects. The array will be validated to make sure that all of the objects share the same context. The batch will use this shared request context, which means that any changes applied to these objects will be picked up by "context.sync()".
* @param batch - A function that takes in an OneNote.RequestContext and returns a promise (typically, just the result of "context.sync()"). When the promise is resolved, any tracked objects that were automatically allocated during execution will be released.
*/
function run<T>(objects: OfficeExtension.ClientObject[], batch: (context: OneNote.RequestContext) => Promise<T>): Promise<T>;
/**
* Executes a batch script that performs actions on the OneNote object model, using the request context of a previously-created API object.
* @param object - A previously-created API object. The batch will use the same request context as the passed-in object, which means that any changes applied to the object will be picked up by "context.sync()".
* @param batch - A function that takes in an OneNote.RequestContext and returns a promise (typically, just the result of "context.sync()"). When the promise is resolved, any tracked objects that were automatically allocated during execution will be released.
*
* @remarks
* In addition to this signature, the method also has the following signatures:
*
* `run<T>(batch: (context: OneNote.RequestContext) => Promise<T>): Promise<T>;`
*
* `run<T>(objects: OfficeExtension.ClientObject[], batch: (context: OneNote.RequestContext) => Promise<T>): Promise<T>;`
*/
function run<T>(object: OfficeExtension.ClientObject, batch: (context: OneNote.RequestContext) => Promise<T>): Promise<T>;
}
@@ -79816,9 +79771,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.Application` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.Application` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.Application` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.Application` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.Application` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -79904,9 +79859,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.Document` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.Document` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.Document` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.Document` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.Document` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -79923,6 +79878,8 @@ declare namespace Visio {
* Occurs when the data is refreshed in the diagram.
*
* [Api set: 1.1]
*
* @eventproperty
*/
readonly onDataRefreshComplete: OfficeExtension.EventHandlers<Visio.DataRefreshCompleteEventArgs>;
/**
@@ -79930,6 +79887,8 @@ declare namespace Visio {
* Occurs when the Document is loaded, refreshed, or changed.
*
* [Api set: 1.1]
*
* @eventproperty
*/
readonly onDocumentLoadComplete: OfficeExtension.EventHandlers<Visio.DocumentLoadCompleteEventArgs>;
/**
@@ -79937,6 +79896,8 @@ declare namespace Visio {
* Occurs when the page is finished loading.
*
* [Api set: 1.1]
*
* @eventproperty
*/
readonly onPageLoadComplete: OfficeExtension.EventHandlers<Visio.PageLoadCompleteEventArgs>;
/**
@@ -79944,6 +79905,8 @@ declare namespace Visio {
* Occurs when the current selection of shapes changes.
*
* [Api set: 1.1]
*
* @eventproperty
*/
readonly onSelectionChanged: OfficeExtension.EventHandlers<Visio.SelectionChangedEventArgs>;
/**
@@ -79951,6 +79914,8 @@ declare namespace Visio {
* Occurs when the user moves the mouse pointer into the bounding box of a shape.
*
* [Api set: 1.1]
*
* @eventproperty
*/
readonly onShapeMouseEnter: OfficeExtension.EventHandlers<Visio.ShapeMouseEnterEventArgs>;
/**
@@ -79958,6 +79923,8 @@ declare namespace Visio {
* Occurs when the user moves the mouse out of the bounding box of a shape.
*
* [Api set: 1.1]
*
* @eventproperty
*/
readonly onShapeMouseLeave: OfficeExtension.EventHandlers<Visio.ShapeMouseLeaveEventArgs>;
toJSON(): Visio.Interfaces.DocumentData;
@@ -80018,9 +79985,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.DocumentView` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.DocumentView` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.DocumentView` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.DocumentView` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.DocumentView` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -80132,9 +80099,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.Page` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.Page` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.Page` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.Page` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.Page` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -80231,9 +80198,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.PageView` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.PageView` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.PageView` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.PageView` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.PageView` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -80279,9 +80246,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.PageCollection` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.PageCollection` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.PageCollection` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.PageCollection` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.PageCollection` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -80324,9 +80291,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.ShapeCollection` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.ShapeCollection` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.ShapeCollection` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.ShapeCollection` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.ShapeCollection` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -80435,9 +80402,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.Shape` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.Shape` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.Shape` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.Shape` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.Shape` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -80523,9 +80490,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.ShapeView` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.ShapeView` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.ShapeView` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.ShapeView` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.ShapeView` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -80651,9 +80618,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.ShapeDataItemCollection` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.ShapeDataItemCollection` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.ShapeDataItemCollection` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.ShapeDataItemCollection` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.ShapeDataItemCollection` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -80706,9 +80673,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.ShapeDataItem` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.ShapeDataItem` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.ShapeDataItem` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.ShapeDataItem` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.ShapeDataItem` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -80754,9 +80721,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.HyperlinkCollection` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.HyperlinkCollection` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.HyperlinkCollection` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.HyperlinkCollection` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.HyperlinkCollection` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -80809,9 +80776,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.Hyperlink` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.Hyperlink` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.Hyperlink` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.Hyperlink` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.Hyperlink` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -80857,9 +80824,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.CommentCollection` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.CommentCollection` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.CommentCollection` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.CommentCollection` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.CommentCollection` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -80919,9 +80886,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.Comment` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.Comment` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.Comment` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.Comment` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.Comment` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -80956,9 +80923,9 @@ declare namespace Visio {
*
* In addition to this signature, this method has the following signatures:
*
* `load(option?: string | string[]): Visio.Selection` - Where option is a comma-delimited string or an array of strings that specify the properties/relationships to load.
* `load(option?: string | string[]): Visio.Selection` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
*
* `load(option?: { select?: string; expand?: string; }): Visio.Selection` - Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.
* `load(option?: { select?: string; expand?: string; }): Visio.Selection` - Where option.select is a comma-delimited string that specifies the properties to load, and options.expand is a comma-delimited string that specifies the navigation properties to load.
*
* `load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Visio.Selection` - Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.
*
@@ -82111,9 +82078,9 @@ declare namespace Visio {
readonly document: Document;
}
/**
* Executes a batch script that performs actions on the Visio object model, using a new request context. When the promise is resolved, any tracked objects that were automatically allocated during execution will be released.
* @param batch - A function that takes in an Visio.RequestContext and returns a promise (typically, just the result of "context.sync()"). The context parameter facilitates requests to the Visio application. Since the Office add-in and the Visio application run in two different processes, the request context is required to get access to the Visio object model from the add-in.
*/
* Executes a batch script that performs actions on the Visio object model, using a new request context. When the promise is resolved, any tracked objects that were automatically allocated during execution will be released.
* @param batch - A function that takes in an Visio.RequestContext and returns a promise (typically, just the result of "context.sync()"). The context parameter facilitates requests to the Visio application. Since the Office add-in and the Visio application run in two different processes, the request context is required to get access to the Visio object model from the add-in.
*/
function run<T>(batch: (context: Visio.RequestContext) => Promise<T>): Promise<T>;
/**
* Executes a batch script that performs actions on the Visio object model, using the request context of a previously-created API object.
@@ -82131,13 +82098,14 @@ declare namespace Visio {
* Executes a batch script that performs actions on the Visio object model, using the RequestContext of a previously-created object. When the promise is resolved, any tracked objects that were automatically allocated during execution will be released.
* @param contextObject - A previously-created Visio.RequestContext. This context will get re-used by the batch function (instead of having a new context created). This means that the batch will be able to pick up changes made to existing API objects, if those objects were derived from this same context.
* @param batch - A function that takes in a RequestContext and returns a promise (typically, just the result of "context.sync()"). The context parameter facilitates requests to the Visio application. Since the Office add-in and the Visio application run in two different processes, the RequestContext is required to get access to the Visio object model from the add-in.
*
* @remarks
* In addition to this signature, the method also has the following signatures:
*
*
* `run<T>(batch: (context: Visio.RequestContext) => Promise<T>): Promise<T>;`
*
*
* `run<T>(object: OfficeExtension.ClientObject | OfficeExtension.EmbeddedSession, batch: (context: Visio.RequestContext) => Promise<T>): Promise<T>;`
*
*
* `run<T>(objects: OfficeExtension.ClientObject[], batch: (context: Visio.RequestContext) => Promise<T>): Promise<T>;`
*/
function run<T>(contextObject: OfficeExtension.ClientRequestContext, batch: (context: Visio.RequestContext) => Promise<T>): Promise<T>;
@@ -13,8 +13,8 @@ function test_excel() {
return ctx.sync()
.then(function () {
var vals = range.values;
for (var i = 0; i < vals.length; i++) {
for (var j = 0; j < vals[i].length; j++) {
for (var i = 0; i < vals.length; i += 1) {
for (var j = 0; j < vals[i].length; j += 1) {
vals[i][j] = vals[i][j].toUpperCase();
}
}
@@ -72,7 +72,7 @@ function test_excel() {
var largestRow = 0;
var largestValue = 0;
for (var i = 0; i < rows.items.length; i++) {
for (var i = 0; i < rows.items.length; i += 1) {
if (rows.items[i].values[0][1] > largestValue) {
largestRow = i;
largestValue = rows.items[i].values[0][1];
@@ -133,7 +133,7 @@ function test_word() {
'; we highlighted the results.';
// Queue a command to change the font for each found item.
for (var i = 0; i < searchResults.items.length; i++) {
for (var i = 0; i < searchResults.items.length; i += 1) {
searchResults.items[i].font.color = '#FF0000' // Change color to Red
searchResults.items[i].font.highlightColor = '#FFFF00';
searchResults.items[i].font.bold = true;
@@ -233,7 +233,7 @@ function test_word() {
if (this._calloutNumber > 0) {
var lastParagraph = insertedImage.insertParagraph('Here are your callout descriptions:', Word.InsertLocation.after) as Word.Paragraph;
for (var i = 0; i < this._calloutNumber; i++) {
for (var i = 0; i < this._calloutNumber; i += 1) {
lastParagraph = lastParagraph.insertParagraph((i + 1) + ') [enter callout description].', Word.InsertLocation.after);
}
}