mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 01:31:45 +00:00
Adding StyleCollection warning
This commit is contained in:
Vendored
+8
-17
@@ -33622,14 +33622,16 @@ declare namespace Excel {
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Represents a collection of all the styles.
|
||||
* Represents a collection of all the styles. WARNING: The StyleCollection items array has a known issue when loading items from the collection. Do not use `StyleCollection.items`, any `load()` method, and the `toJSON()` method.
|
||||
*
|
||||
* [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. */
|
||||
/**
|
||||
* WARNING: The StyleCollection items array has a known issue when loading items from the collection. Do not use `StyleCollection.items`, any `load()` method, and the `toJSON()` method.
|
||||
*/
|
||||
readonly items: Excel.Style[];
|
||||
/**
|
||||
*
|
||||
@@ -33650,27 +33652,16 @@ declare namespace Excel {
|
||||
*/
|
||||
getItem(name: string): Excel.Style;
|
||||
/**
|
||||
* Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties.
|
||||
*
|
||||
* @remarks
|
||||
*
|
||||
* In addition to this signature, this method has the following signatures:
|
||||
*
|
||||
* `load(option?: string | string[]): Excel.StyleCollection` - Where option is a comma-delimited string or an array of strings that specify the properties to load.
|
||||
*
|
||||
* `load(option?: { select?: string; expand?: string; }): Excel.StyleCollection` - 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 }): Excel.StyleCollection` - 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.
|
||||
*
|
||||
* WARNING: The StyleCollection items array has a known issue when loading items from the collection. Do not use `StyleCollection.items`, any `load()` method, and the `toJSON()` method.
|
||||
*
|
||||
* @param options Provides options for which properties of the object to load.
|
||||
*/
|
||||
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.
|
||||
*/
|
||||
* WARNING: The StyleCollection items array has a known issue when loading items from the collection. Do not use `StyleCollection.items`, any `load()` method, and the `toJSON()` method.
|
||||
*/
|
||||
toJSON(): Excel.Interfaces.StyleCollectionData;
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user