mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
Workaround for lack of multi-level indenting
This commit is contained in:
Vendored
+19
-44
@@ -2460,54 +2460,29 @@ declare namespace Office {
|
||||
*
|
||||
* The following application-specific actions apply when writing data to a selection.
|
||||
*
|
||||
* - Word
|
||||
* <table>
|
||||
* <tr><td>Word</td><td>If there is no selection and the insertion point is at a valid location, the specified `data` is inserted at the insertion point</td><td>If `data` is a string, the specified text is inserted.</td></tr>
|
||||
* <tr><td></td><td></td><td>If `data` is an array of arrays ("matrix") or a TableData object, a new Word table is inserted.</td></tr>
|
||||
* <tr><td></td><td></td><td>If `data` is HTML, the specified HTML is inserted. (Important: If any of the HTML you insert is invalid, Word won't raise an error. Word will insert as much of the HTML as it can and omits any invalid data).</td></tr>
|
||||
* <tr><td></td><td></td><td>If `data` is Office Open XML, the specified XML is inserted.</td></tr>
|
||||
* <tr><td></td><td></td><td>If `data` is a base64 encoded image stream, the specified image is inserted.</td></tr></td></tr>
|
||||
* <tr><td></td><td>If there is a selection</td><td>It will be replaced with the specified `data` following the same rules as above.</td></tr>
|
||||
* <tr><td></td><td>Insert images</td><td>Inserted images are placed inline. The imageLeft and imageTop parameters are ignored. The image aspect ratio is always locked. If only one of the imageWidth and imageHeight parameter is given, the other value will be automatically scaled to keep the original aspect ratio.</td></tr>
|
||||
*
|
||||
* - If there is no selection and the insertion point is at a valid location, the specified `data` is inserted at the insertion point as follows:
|
||||
* <tr><td>Excel</td><td>If a single cell is selected</td><td>If `data` is a string, the specified text is inserted as the value of the current cell.</td></tr>
|
||||
* <tr><td></td><td></td><td>If `data` is an array of arrays ("matrix"), the specified set of rows and columns are inserted, if no other data in surrounding cells will be overwritten.</td></tr>
|
||||
* <tr><td></td><td></td><td>If `data` is a TableData object, a new Excel table with the specified set of rows and headers is inserted, if no other data in surrounding cells will be overwritten.</td></tr>
|
||||
* <tr><td></td><td>If multiple cells are selected</td><td>If the shape does not match the shape of `data`, an error is returned.</td></tr>
|
||||
* <tr><td></td><td></td><td>If the shape of the selection exactly matches the shape of `data`, the values of the selected cells are updated based on the values in `data`.</td></tr>
|
||||
* <tr><td></td><td>Insert images</td><td>Inserted images are floating. The position imageLeft and imageTop parameters are relative to currently selected cell(s). Negative imageLeft and imageTop values are allowed and possibly readjusted by Excel to position the image inside a worksheet. Image aspect ratio is locked unless both imageWidth and imageHeight parameters are provided. If only one of the imageWidth and imageHeight parameter is given, the other value will be automatically scaled to keep the original aspect ratio.</td></tr>
|
||||
* <tr><td></td><td>All other cases</td><td>An error is returned.</td></tr>
|
||||
*
|
||||
* - If `data` is a string, the specified text is inserted.
|
||||
* <tr><td>Excel Online</td><td>In addition to the behaviors described for Excel above, these limits apply when writing data in Excel Online</td><td>The total number of cells you can write to a worksheet with the `data` parameter can't exceed 20,000 in a single call to this method.</td></tr>
|
||||
* <tr><td></td><td></td><td>The number of formatting groups passed to the `cellFormat` parameter can't exceed 100. A single formatting group consists of a set of formatting applied to a specified range of cells.</td></tr>
|
||||
*
|
||||
* - If `data` is an array of arrays ("matrix") or a TableData object, a new Word table is inserted.
|
||||
* <tr><td>PowerPoint</td><td>Insert image</td><td>Inserted images are floating. The position imageLeft and imageTop parameters are optional but if provided, both should be present. If a single value is provided, it will be ignored. Negative imageLeft and imageTop values are allowed and can position an image outside of a slide. If no optional parameter is given and slide has a placeholder, the image will replace the placeholder in the slide. Image aspect ratio will be locked unless both imageWidth and imageHeight parameters are provided. If only one of the imageWidth and imageHeight parameter is given, the other value will be automatically scaled to keep the original aspect ratio.</td></tr>
|
||||
* </table>
|
||||
*
|
||||
* - If `data` is HTML, the specified HTML is inserted. (Important: If any of the HTML you insert is invalid, Word won't raise an error. Word will insert as much of the HTML as it can and omits any invalid data).
|
||||
*
|
||||
* - If `data` is Office Open XML, the specified XML is inserted.
|
||||
*
|
||||
* - If `data` is a base64 encoded image stream, the specified image is inserted.
|
||||
*
|
||||
* - If there is a selection, it will be replaced with the specified `data` following the same rules as above.
|
||||
*
|
||||
* - Insert images: Inserted images are placed inline. The imageLeft and imageTop parameters are ignored. The image aspect ratio is always locked. If only one of the imageWidth and imageHeight parameter is given, the other value will be automatically scaled to keep the original aspect ratio.
|
||||
*
|
||||
* - Excel
|
||||
*
|
||||
* - If a single cell is selected:
|
||||
*
|
||||
* - If `data` is a string, the specified text is inserted as the value of the current cell.
|
||||
*
|
||||
* - If `data` is an array of arrays ("matrix"), the specified set of rows and columns are inserted, if no other data in surrounding cells will be overwritten.
|
||||
*
|
||||
* - If `data` is a TableData object, a new Excel table with the specified set of rows and headers is inserted, if no other data in surrounding cells will be overwritten.
|
||||
*
|
||||
* - If multiple cells are selected and the shape does not match the shape of `data`, an error is returned.
|
||||
*
|
||||
* - If multiple cells are selected and the shape of the selection exactly matches the shape of `data`, the values of the selected cells are updated based on the values in `data`.
|
||||
*
|
||||
* - Insert images: Inserted images are floating. The position imageLeft and imageTop parameters are relative to currently selected cell(s). Negative imageLeft and imageTop values are allowed and possibly readjusted by Excel to position the image inside a worksheet. Image aspect ratio is locked unless both imageWidth and imageHeight parameters are provided. If only one of the imageWidth and imageHeight parameter is given, the other value will be automatically scaled to keep the original aspect ratio.
|
||||
*
|
||||
* - In all other cases, an error is returned.
|
||||
*
|
||||
* - Excel Online
|
||||
*
|
||||
* - In addition to the behaviors described for Excel above, the following limits apply when writing data in Excel Online.
|
||||
*
|
||||
* - The total number of cells you can write to a worksheet with the `data` parameter can't exceed 20,000 in a single call to this method.
|
||||
*
|
||||
* - The number of formatting groups passed to the `cellFormat` parameter can't exceed 100. A single formatting group consists of a set of formatting applied to a specified range of cells.
|
||||
*
|
||||
* - PowerPoint
|
||||
*
|
||||
* - Inserted images are floating. The position imageLeft and imageTop parameters are optional but if provided, both should be present. If a single value is provided, it will be ignored. Negative imageLeft and imageTop values are allowed and can position an image outside of a slide. If no optional parameter is given and slide has a placeholder, the image will replace the placeholder in the slide. Image aspect ratio will be locked unless both imageWidth and imageHeight parameters are provided. If only one of the imageWidth and imageHeight parameter is given, the other value will be automatically scaled to keep the original aspect ratio.
|
||||
*
|
||||
* @param data The data to be set. Either a string or {@link Office.CoercionType} value, 2d array or TableData object.
|
||||
*
|
||||
* The possible CoercionTypes that can be used for the data parameter, or for the coercionType option, vary by host:
|
||||
|
||||
Reference in New Issue
Block a user