From 7dd759723af13bdd87b45d5ee2d5e4f27341fd86 Mon Sep 17 00:00:00 2001 From: Alex Jerabek <38896772+AlexJerabek@users.noreply.github.com> Date: Tue, 10 Sep 2019 22:31:01 -0700 Subject: [PATCH] [office-js, office-js-preview] Excel preivew and AutoFill text changes (#38254) * Excel preivew text changes * PR feedback * Merging two PRs * PR feedback --- types/office-js-preview/index.d.ts | 26 ++++++++++++++------------ types/office-js/index.d.ts | 14 ++++---------- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 4d7c296c2c..79460590ab 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -20876,8 +20876,10 @@ declare namespace Excel { /** * * Occurs when left-clicked/tapped operation happens in the worksheet. This event will not be fired when clicking in the following cases: - - The user drags the mouse for multi-selection. - - The user selects a cell in the mode when cell arguments are selected for formula references. + * + * - The user drags the mouse for multi-selection. + * + * - The user selects a cell in the mode when cell arguments are selected for formula references. * * [Api set: ExcelApi BETA (PREVIEW ONLY)] * @@ -21123,8 +21125,10 @@ declare namespace Excel { /** * * Occurs when left-clicked/tapped operation happens in the worksheet collection. This event will not be fired when clicking in the following cases: - - The user drags the mouse for multi-selection. - - The user selects a cell in the mode when cell arguments are selected for formula references. + * + * - The user drags the mouse for multi-selection. + * + * - The user selects a cell in the mode when cell arguments are selected for formula references. * * [Api set: ExcelApi BETA (PREVIEW ONLY)] * @@ -21665,14 +21669,13 @@ declare namespace Excel { * Fills range from the current range to the destination range using the specified AutoFill logic. * The destination range can be null, or can extend the source either horizontally or vertically. * If the destination range is null, data is filled out based on the surrounding cells (which is the behavior when double-clicking the UI’s range fill handle). - * Discontiguous ranges are not supported. * * For more information, read {@link https://support.office.com/article/video-use-autofill-and-flash-fill-2e79a709-c814-4b27-8bc2-c4dc84d49464 | Use AutoFill and Flash Fill}. * - * [Api set: ExcelApi 1.9] + * [Api set: ExcelApi 1.9, ExcelApi BETA (PREVIEW ONLY) for null `destinationRange`] * - * @param destinationRange The destination range to autofill. - * @param autoFillType The type of autofill. Specifies how the destination range is to be filled, based on the contents of the current range. Default is "FillDefault". + * @param destinationRange The destination range to fill. Discontiguous ranges are not supported. + * @param autoFillType The type of AutoFill. Specifies how the destination range is to be filled, based on the contents of the current range. Default is "FillDefault". */ autoFill(destinationRange: Range | string, autoFillType?: Excel.AutoFillType): void; /** @@ -21680,14 +21683,13 @@ declare namespace Excel { * Fills range from the current range to the destination range using the specified AutoFill logic. * The destination range can be null, or can extend the source either horizontally or vertically. * If the destination range is null, data is filled out based on the surrounding cells (which is the behavior when double-clicking the UI’s range fill handle). - * Discontiguous ranges are not supported. * * For more information, read {@link https://support.office.com/article/video-use-autofill-and-flash-fill-2e79a709-c814-4b27-8bc2-c4dc84d49464 | Use AutoFill and Flash Fill}. * - * [Api set: ExcelApi 1.9] + * [Api set: ExcelApi 1.9, ExcelApi BETA (PREVIEW ONLY) for null `destinationRange`] * - * @param destinationRange The destination range to autofill. - * @param autoFillType The type of autofill. Specifies how the destination range is to be filled, based on the contents of the current range. Default is "FillDefault". + * @param destinationRange The destination range to fill. Discontiguous ranges are not supported. + * @param autoFillType The type of AutoFill. Specifies how the destination range is to be filled, based on the contents of the current range. Default is "FillDefault". */ autoFill(destinationRange: Range | string, autoFillType?: "FillDefault" | "FillCopy" | "FillSeries" | "FillFormats" | "FillValues" | "FillDays" | "FillWeekdays" | "FillMonths" | "FillYears" | "LinearTrend" | "GrowthTrend" | "FlashFill"): void; /** diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 1c4369007d..79f6e370c4 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -18876,31 +18876,25 @@ declare namespace Excel { set(properties: Excel.Range): void; /** * - * Fills range from the current range to the destination range using the specified AutoFill logic. - * The destination range can be null, or can extend the source either horizontally or vertically. - * If the destination range is null, data is filled out based on the surrounding cells (which is the behavior when double-clicking the UI’s range fill handle). - * Discontiguous ranges are not supported. + * Fills range from the current range to the destination range using the specified AutoFill logic. The destination range must extend the source either horizontally or vertically. * * For more information, read {@link https://support.office.com/article/video-use-autofill-and-flash-fill-2e79a709-c814-4b27-8bc2-c4dc84d49464 | Use AutoFill and Flash Fill}. * * [Api set: ExcelApi 1.9] * - * @param destinationRange The destination range to autofill. + * @param destinationRange The destination range to fill. Discontiguous ranges are not supported. * @param autoFillType The type of autofill. Specifies how the destination range is to be filled, based on the contents of the current range. Default is "FillDefault". */ autoFill(destinationRange: Range | string, autoFillType?: Excel.AutoFillType): void; /** * - * Fills range from the current range to the destination range using the specified AutoFill logic. - * The destination range can be null, or can extend the source either horizontally or vertically. - * If the destination range is null, data is filled out based on the surrounding cells (which is the behavior when double-clicking the UI’s range fill handle). - * Discontiguous ranges are not supported. + * Fills range from the current range to the destination range using the specified AutoFill logic. The destination range must extend the source either horizontally or vertically. * * For more information, read {@link https://support.office.com/article/video-use-autofill-and-flash-fill-2e79a709-c814-4b27-8bc2-c4dc84d49464 | Use AutoFill and Flash Fill}. * * [Api set: ExcelApi 1.9] * - * @param destinationRange The destination range to autofill. + * @param destinationRange The destination range to fill. Discontiguous ranges are not supported. * @param autoFillType The type of autofill. Specifies how the destination range is to be filled, based on the contents of the current range. Default is "FillDefault". */ autoFill(destinationRange: Range | string, autoFillType?: "FillDefault" | "FillCopy" | "FillSeries" | "FillFormats" | "FillValues" | "FillDays" | "FillWeekdays" | "FillMonths" | "FillYears" | "LinearTrend" | "GrowthTrend" | "FlashFill"): void;