Excel.Interfaces.RangeBorderData interface

描述通过调用 "rangeBorder ()" 返回的数据的接口。An interface describing the data returned by calling "rangeBorder.toJSON()".

属性

color

代表#RRGGBB (例如 "FFA500") 或命名的 HTML 颜色 (例如 "橙色") 的边框线条颜色的 HTML 颜色代码。HTML color code representing the color of the border line, of the form #RRGGBB (e.g. "FFA500") or as a named HTML color (e.g. "orange").

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

sideIndex

指示边框的特定边的常量值。Constant value that indicates the specific side of the border. 有关详细信息, 请参阅 BorderIndex。See Excel.BorderIndex for details. 只读。Read-only.

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

style

线条样式的常量之一,指定边框的线条样式。One of the constants of line style specifying the line style for the border. 有关详细信息, 请参阅 BorderLineStyle。See Excel.BorderLineStyle for details.

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

tintAndShade

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

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

weight

指定区域周围的边框的粗细。Specifies the weight of the border around a range. 有关详细信息, 请参阅 BorderWeight。See Excel.BorderWeight for details.

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

属性详细信息

color

代表#RRGGBB (例如 "FFA500") 或命名的 HTML 颜色 (例如 "橙色") 的边框线条颜色的 HTML 颜色代码。HTML color code representing the color of the border line, of the form #RRGGBB (e.g. "FFA500") or as a named HTML color (e.g. "orange").

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

color?: string;

属性值

string

sideIndex

指示边框的特定边的常量值。Constant value that indicates the specific side of the border. 有关详细信息, 请参阅 BorderIndex。See Excel.BorderIndex for details. 只读。Read-only.

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

sideIndex?: Excel.BorderIndex | "EdgeTop" | "EdgeBottom" | "EdgeLeft" | "EdgeRight" | "InsideVertical" | "InsideHorizontal" | "DiagonalDown" | "DiagonalUp";

属性值

Excel.BorderIndex | "EdgeTop" | "EdgeBottom" | "EdgeLeft" | "EdgeRight" | "InsideVertical" | "InsideHorizontal" | "DiagonalDown" | "DiagonalUp"

style

线条样式的常量之一,指定边框的线条样式。One of the constants of line style specifying the line style for the border. 有关详细信息, 请参阅 BorderLineStyle。See Excel.BorderLineStyle for details.

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

style?: Excel.BorderLineStyle | "None" | "Continuous" | "Dash" | "DashDot" | "DashDotDot" | "Dot" | "Double" | "SlantDashDot";

属性值

Excel.BorderLineStyle | "None" | "Continuous" | "Dash" | "DashDot" | "DashDotDot" | "Dot" | "Double" | "SlantDashDot"

tintAndShade

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

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

tintAndShade?: number;

属性值

number

weight

指定区域周围的边框的粗细。Specifies the weight of the border around a range. 有关详细信息, 请参阅 BorderWeight。See Excel.BorderWeight for details.

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

weight?: Excel.BorderWeight | "Hairline" | "Thin" | "Medium" | "Thick";

属性值

Excel.BorderWeight | "Hairline" | "Thin" | "Medium" | "Thick"