From c15bcd2e68aa2c9c3172adfae9b262ad67594daf Mon Sep 17 00:00:00 2001 From: Alex Jerabek <38896772+AlexJerabek@users.noreply.github.com> Date: Tue, 6 Aug 2019 16:22:07 -0700 Subject: [PATCH] Clarifying numberFormatLocal description (#37410) --- types/office-js-preview/index.d.ts | 23 ++++++++++++++--------- types/office-js/index.d.ts | 23 ++++++++++++++--------- 2 files changed, 28 insertions(+), 18 deletions(-) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index d22c25d7e73e59..4b8f2998cd6943 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -21281,8 +21281,9 @@ declare namespace Excel { numberFormat: any[][]; /** * - * Represents Excel's number format code for the given range as a string in the language of the user. + * Represents Excel's number format code for the given range, based on the language settings of the user. When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + Excel does not perform any language or format coercion when getting or setting the `numberFormatLocal` property. Any returned text uses the locally-formatted strings based on the language specified in the system settings. * * [Api set: ExcelApi 1.7] */ @@ -45590,8 +45591,9 @@ declare namespace Excel { numberFormat?: any[][]; /** * - * Represents Excel's number format code for the given range as a string in the language of the user. - When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + * Represents Excel's number format code for the given range, based on the language settings of the user. + When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + Excel does not perform any language or format coercion when getting or setting the `numberFormatLocal` property. Any returned text uses the locally-formatted strings based on the language specified in the system settings. * * [Api set: ExcelApi 1.7] */ @@ -50597,8 +50599,9 @@ declare namespace Excel { numberFormat?: any[][]; /** * - * Represents Excel's number format code for the given range as a string in the language of the user. - When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + * Represents Excel's number format code for the given range, based on the language settings of the user. + When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + Excel does not perform any language or format coercion when getting or setting the `numberFormatLocal` property. Any returned text uses the locally-formatted strings based on the language specified in the system settings. * * [Api set: ExcelApi 1.7] */ @@ -56701,8 +56704,9 @@ declare namespace Excel { numberFormat?: boolean; /** * - * Represents Excel's number format code for the given range as a string in the language of the user. - When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + * Represents Excel's number format code for the given range, based on the language settings of the user. + When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + Excel does not perform any language or format coercion when getting or setting the `numberFormatLocal` property. Any returned text uses the locally-formatted strings based on the language specified in the system settings. * * [Api set: ExcelApi 1.7] */ @@ -64028,8 +64032,9 @@ declare namespace Excel { numberFormat?: boolean; /** * - * For EACH ITEM in the collection: Represents Excel's number format code for the given range as a string in the language of the user. - When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + * For EACH ITEM in the collection: Represents Excel's number format code for the given range, based on the language settings of the user. + When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + Excel does not perform any language or format coercion when getting or setting the `numberFormatLocal` property. Any returned text uses the locally-formatted strings based on the language specified in the system settings. * * [Api set: ExcelApi 1.7] */ diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 69f161026935e2..929eb01aba4563 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -20021,8 +20021,9 @@ declare namespace Excel { numberFormat: any[][]; /** * - * Represents Excel's number format code for the given range as a string in the language of the user. + * Represents Excel's number format code for the given range, based on the language settings of the user. When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + Excel does not perform any language or format coercion when getting or setting the `numberFormatLocal` property. Any returned text uses the locally-formatted strings based on the language specified in the system settings. * * [Api set: ExcelApi 1.7] */ @@ -42419,8 +42420,9 @@ declare namespace Excel { numberFormat?: any[][]; /** * - * Represents Excel's number format code for the given range as a string in the language of the user. - When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + * Represents Excel's number format code for the given range, based on the language settings of the user. + When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + Excel does not perform any language or format coercion when getting or setting the `numberFormatLocal` property. Any returned text uses the locally-formatted strings based on the language specified in the system settings. * * [Api set: ExcelApi 1.7] */ @@ -47106,8 +47108,9 @@ declare namespace Excel { numberFormat?: any[][]; /** * - * Represents Excel's number format code for the given range as a string in the language of the user. - When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + * Represents Excel's number format code for the given range, based on the language settings of the user. + When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + Excel does not perform any language or format coercion when getting or setting the `numberFormatLocal` property. Any returned text uses the locally-formatted strings based on the language specified in the system settings. * * [Api set: ExcelApi 1.7] */ @@ -52768,8 +52771,9 @@ declare namespace Excel { numberFormat?: boolean; /** * - * Represents Excel's number format code for the given range as a string in the language of the user. - When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + * Represents Excel's number format code for the given range, based on the language settings of the user. + When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + Excel does not perform any language or format coercion when getting or setting the `numberFormatLocal` property. Any returned text uses the locally-formatted strings based on the language specified in the system settings. * * [Api set: ExcelApi 1.7] */ @@ -59827,8 +59831,9 @@ declare namespace Excel { numberFormat?: boolean; /** * - * For EACH ITEM in the collection: Represents Excel's number format code for the given range as a string in the language of the user. - When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + * For EACH ITEM in the collection: Represents Excel's number format code for the given range, based on the language settings of the user. + When setting number format local to a range, the value argument can be either a single value (string) or a two-dimensional array. If the argument is a single value, it will be applied to all cells in the range. + Excel does not perform any language or format coercion when getting or setting the `numberFormatLocal` property. Any returned text uses the locally-formatted strings based on the language specified in the system settings. * * [Api set: ExcelApi 1.7] */