Excel.Interfaces.ShapeLineFormatData interface
一个描述通过调用 shapeLineFormat.toJSON()返回的数据的接口。
属性
| color | 以 HTML 颜色格式表示线条颜色,形式 #RRGGBB (例如“FFA500”) 或命名 HTML 颜色 (例如“orange”) 。 |
| dash |
表示形状的线条样式。 在线条不可见或存在不一致的虚线样式时返回 |
| style | 表示形状的线条样式。 线条不可见或样式不一致时返回 |
| transparency | 将指定线条的透明度表示为从 0.0(不透明)到 1.0(清晰)的值。 当形状具有不一致的透明度时返回 |
| visible | 指定形状元素的线条格式是否可见。 当形状具有不一致的可见性时返回 |
| weight | 表示线条的粗细(以磅为单位)。 当线条不可见或线条粗细不一致时返回 |
属性详细信息
color
以 HTML 颜色格式表示线条颜色,形式 #RRGGBB (例如“FFA500”) 或命名 HTML 颜色 (例如“orange”) 。
color?: string;
属性值
string
注解
dashStyle
表示形状的线条样式。 在线条不可见或存在不一致的虚线样式时返回 null 。 有关详细信息,请参阅 Excel.ShapeLineDashStyle。
dashStyle?: Excel.ShapeLineDashStyle | "Dash" | "DashDot" | "DashDotDot" | "LongDash" | "LongDashDot" | "RoundDot" | "Solid" | "SquareDot" | "LongDashDotDot" | "SystemDash" | "SystemDot" | "SystemDashDot";
属性值
Excel.ShapeLineDashStyle | "Dash" | "DashDot" | "DashDotDot" | "LongDash" | "LongDashDot" | "RoundDot" | "Solid" | "SquareDot" | "LongDashDotDot" | "SystemDash" | "SystemDot" | "SystemDashDot"
注解
style
表示形状的线条样式。 线条不可见或样式不一致时返回 null 。 有关详细信息,请参阅 Excel.ShapeLineStyle。
style?: Excel.ShapeLineStyle | "Single" | "ThickBetweenThin" | "ThickThin" | "ThinThick" | "ThinThin";
属性值
Excel.ShapeLineStyle | "Single" | "ThickBetweenThin" | "ThickThin" | "ThinThick" | "ThinThin"
注解
transparency
将指定线条的透明度表示为从 0.0(不透明)到 1.0(清晰)的值。 当形状具有不一致的透明度时返回 null 。
transparency?: number;
属性值
number