Excel.Interfaces.RangeFontUpdateData interface

一个用于更新 RangeFont 对象上的数据的接口, 可用于 "rangeFont (An interface for updating data on the RangeFont object, for use in "rangeFont.set({ ... })".

属性

bold

表示字体的加粗状态。Represents the bold status of font.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

color

文本颜色的 HTML 颜色代码表示。HTML color code representation of the text color. 例如,E.g. #FF0000 表示红色。#FF0000 represents Red.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

italic

表示字体的斜体状态。Represents the italic status of the font.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

name

字体名称(例如"Calibri")Font name (e.g. "Calibri")

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

size

字号Font size.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

strikethrough

表示字体的删除线状态。Represents the strikethrough status of font. Null 值表示整个区域没有统一的删除线设置。A null value indicates that the entire range doesn't have uniform Strikethrough setting.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

subscript

表示字体的下标状态。Represents the Subscript status of font. 如果区域中的所有字体均为下标, 则返回 True。Returns True if all the fonts of the range are Subscript. 如果区域的所有字体都是上标或 normal (既不是上标, 也不是下标), 则返回 False。Returns False if all the fonts of the range are Superscript or normal (neither Superscript, nor Subscript). 否则返回 Null。Returns Null otherwise.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

superscript

表示字体的上标状态。Represents the Superscript status of font. 如果区域中的所有字体均为上标, 则返回 True。Returns True if all the fonts of the range are Superscript. 如果区域的所有字体为下标或普通 (既不是上标, 也不是下标), 则返回 False。Returns False if all the fonts of the range are Subscript or normal (neither Superscript, nor Subscript). 否则返回 Null。Returns Null otherwise.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

tintAndShade

返回或设置一个使区域字体的颜色变亮或变暗的双精度数值,该值介于 -1(最暗)与 1(最亮)之间,初始颜色为 0。Returns or sets a double that lightens or darkens a color for Range Font, the value is between -1 (darkest) and 1 (brightest), with 0 for the original color. 空值表示整个区域没有统一的字体 tintAndShade 设置。A null value indicates that the entire range doesn't have uniform font tintAndShade setting.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

underline

应用于字体的下划线类型。Type of underline applied to the font. 有关详细信息, 请参阅 RangeUnderlineStyle。See Excel.RangeUnderlineStyle for details.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

属性详细信息

bold

表示字体的加粗状态。Represents the bold status of font.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

bold?: boolean;

属性值

boolean

color

文本颜色的 HTML 颜色代码表示。HTML color code representation of the text color. 例如,E.g. #FF0000 表示红色。#FF0000 represents Red.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

color?: string;

属性值

string

italic

表示字体的斜体状态。Represents the italic status of the font.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

italic?: boolean;

属性值

boolean

name

字体名称(例如"Calibri")Font name (e.g. "Calibri")

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

name?: string;

属性值

string

size

字号Font size.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

size?: number;

属性值

number

strikethrough

表示字体的删除线状态。Represents the strikethrough status of font. Null 值表示整个区域没有统一的删除线设置。A null value indicates that the entire range doesn't have uniform Strikethrough setting.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

strikethrough?: boolean;

属性值

boolean

subscript

表示字体的下标状态。Represents the Subscript status of font. 如果区域中的所有字体均为下标, 则返回 True。Returns True if all the fonts of the range are Subscript. 如果区域的所有字体都是上标或 normal (既不是上标, 也不是下标), 则返回 False。Returns False if all the fonts of the range are Superscript or normal (neither Superscript, nor Subscript). 否则返回 Null。Returns Null otherwise.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

subscript?: boolean;

属性值

boolean

superscript

表示字体的上标状态。Represents the Superscript status of font. 如果区域中的所有字体均为上标, 则返回 True。Returns True if all the fonts of the range are Superscript. 如果区域的所有字体为下标或普通 (既不是上标, 也不是下标), 则返回 False。Returns False if all the fonts of the range are Subscript or normal (neither Superscript, nor Subscript). 否则返回 Null。Returns Null otherwise.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

superscript?: boolean;

属性值

boolean

tintAndShade

返回或设置一个使区域字体的颜色变亮或变暗的双精度数值,该值介于 -1(最暗)与 1(最亮)之间,初始颜色为 0。Returns or sets a double that lightens or darkens a color for Range Font, the value is between -1 (darkest) and 1 (brightest), with 0 for the original color. 空值表示整个区域没有统一的字体 tintAndShade 设置。A null value indicates that the entire range doesn't have uniform font tintAndShade setting.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

tintAndShade?: number;

属性值

number

underline

应用于字体的下划线类型。Type of underline applied to the font. 有关详细信息, 请参阅 RangeUnderlineStyle。See Excel.RangeUnderlineStyle for details.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

underline?: Excel.RangeUnderlineStyle | "None" | "Single" | "Double" | "SingleAccountant" | "DoubleAccountant";

属性值

Excel.RangeUnderlineStyle | "None" | "Single" | "Double" | "SingleAccountant" | "DoubleAccountant"