Excel.Interfaces.RangeBorderData interface

一个接口,用于描述通过调用 rangeBorder.toJSON()返回的数据。

属性

color

表示边框线颜色的 HTML 颜色代码,格式#RRGGBB (例如“FFA500”) ,或作为命名 HTML 颜色 (例如“橙色”) 。

sideIndex

指示边框的特定边的常量值。 有关详细信息,请参阅 Excel.BorderIndex

style

线条样式的常量之一,指定边框的线条样式。 有关详细信息,请参阅 Excel.BorderLineStyle

tintAndShade

指定为范围边框的颜色变亮或变暗的双精度值,该值介于 -1 (最暗) 和 1 (最亮) 之间,原始颜色为 0。 值 null 指示边框没有统 tintAndShade 一设置。

weight

指定区域周围的边框的粗细。 有关详细信息,请参阅 Excel.BorderWeight

属性详细信息

color

表示边框线颜色的 HTML 颜色代码,格式#RRGGBB (例如“FFA500”) ,或作为命名 HTML 颜色 (例如“橙色”) 。

color?: string;

属性值

string

注解

[ API 集:ExcelApi 1.1 ]

sideIndex

指示边框的特定边的常量值。 有关详细信息,请参阅 Excel.BorderIndex

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

属性值

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

注解

[ API 集:ExcelApi 1.1 ]

style

线条样式的常量之一,指定边框的线条样式。 有关详细信息,请参阅 Excel.BorderLineStyle

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

属性值

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

注解

[ API 集:ExcelApi 1.1 ]

tintAndShade

指定为范围边框的颜色变亮或变暗的双精度值,该值介于 -1 (最暗) 和 1 (最亮) 之间,原始颜色为 0。 值 null 指示边框没有统 tintAndShade 一设置。

tintAndShade?: number;

属性值

number

注解

[ API 集:ExcelApi 1.9 ]

weight

指定区域周围的边框的粗细。 有关详细信息,请参阅 Excel.BorderWeight

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

属性值

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

注解

[ API 集:ExcelApi 1.1 ]