From df7b8f56a0063e1945f3064367bc94d8106eee59 Mon Sep 17 00:00:00 2001 From: Alex Jerabek Date: Fri, 22 Mar 2019 15:49:23 -0700 Subject: [PATCH 1/2] Adding note about Word's font.highlightColor for Desktop --- types/office-js-preview/index.d.ts | 16 ++++++++++++++++ types/office-js/index.d.ts | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 498dfcea24..98d5b8c437 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -69090,6 +69090,10 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * + * Note: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". + * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * * [Api set: WordApi 1.1] */ highlightColor: string; @@ -74308,6 +74312,10 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * + * Note: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". + * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * * [Api set: WordApi 1.1] */ highlightColor?: string; @@ -75430,6 +75438,10 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * + * Note: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". + * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * * [Api set: WordApi 1.1] */ highlightColor?: string; @@ -76990,6 +77002,10 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * + * Note: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". + * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * * [Api set: WordApi 1.1] */ highlightColor?: boolean; diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 403e649f55..9086c4a9b1 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -52444,6 +52444,10 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * + * Note: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". + * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * * [Api set: WordApi 1.1] */ highlightColor: string; @@ -57258,6 +57262,10 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * + * Note: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". + * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * * [Api set: WordApi 1.1] */ highlightColor?: string; @@ -58392,6 +58400,10 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * + * Note: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". + * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * * [Api set: WordApi 1.1] */ highlightColor?: string; @@ -60106,6 +60118,10 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * + * Note: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". + * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * * [Api set: WordApi 1.1] */ highlightColor?: boolean; From dcef0b6d61290e0b460286aa70e62c0e3db2ad41 Mon Sep 17 00:00:00 2001 From: Alex Jerabek Date: Fri, 22 Mar 2019 16:07:14 -0700 Subject: [PATCH 2/2] Feedback --- types/office-js-preview/index.d.ts | 24 ++++++++++++------------ types/office-js/index.d.ts | 24 ++++++++++++------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 98d5b8c437..fe5823c83c 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -69090,9 +69090,9 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * - * Note: Only the default highlight colors are available in Office for Windows Desktop. - * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". - * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * **Note**: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". + * When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font. * * [Api set: WordApi 1.1] */ @@ -74312,9 +74312,9 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * - * Note: Only the default highlight colors are available in Office for Windows Desktop. - * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". - * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * **Note**: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". + * When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font. * * [Api set: WordApi 1.1] */ @@ -75438,9 +75438,9 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * - * Note: Only the default highlight colors are available in Office for Windows Desktop. - * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". - * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * **Note**: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". + * When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font. * * [Api set: WordApi 1.1] */ @@ -77002,9 +77002,9 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * - * Note: Only the default highlight colors are available in Office for Windows Desktop. - * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". - * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * **Note**: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". + * When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font. * * [Api set: WordApi 1.1] */ diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 9086c4a9b1..7cb6b8e2cc 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -52444,9 +52444,9 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * - * Note: Only the default highlight colors are available in Office for Windows Desktop. - * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". - * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * **Note**: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". + * When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font. * * [Api set: WordApi 1.1] */ @@ -57262,9 +57262,9 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * - * Note: Only the default highlight colors are available in Office for Windows Desktop. - * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". - * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * **Note**: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". + * When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font. * * [Api set: WordApi 1.1] */ @@ -58400,9 +58400,9 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * - * Note: Only the default highlight colors are available in Office for Windows Desktop. - * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". - * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * **Note**: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". + * When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font. * * [Api set: WordApi 1.1] */ @@ -60118,9 +60118,9 @@ declare namespace Word { * * Gets or sets the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. * - * Note: Only the default highlight colors are available in Office for Windows Desktop. - * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", "Black". - * Any other color will be converted to the closest color when applied to the font when the add-in run in Office for Windows Desktop. + * **Note**: Only the default highlight colors are available in Office for Windows Desktop. + * These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". + * When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font. * * [Api set: WordApi 1.1] */