Excel.Interfaces.ShapeFillUpdateData interface

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

属性

foregroundColor

代表形状填充的前景色, 格式#RRGGBB (例如 "FFA500") 或命名的 html 颜色 (例如 "橙色") 的 html 颜色格式。Represents the shape fill foreground color in HTML color format, of the form #RRGGBB (e.g. "FFA500") or as a named HTML color (e.g. "orange")

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

transparency

返回或设置填充的透明度百分比,取值范围为 0.0(不透明)到 1.0(清晰)之间。Returns or sets the transparency percentage of the fill as a value from 0.0 (opaque) through 1.0 (clear). 如果形状类型不支持透明度或形状填充透明度不一致(例如使用渐变填充类型),则返回 null。Returns null if the shape type does not support transparency or the shape fill has inconsistent transparency, such as with a gradient fill type.

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

属性详细信息

foregroundColor

代表形状填充的前景色, 格式#RRGGBB (例如 "FFA500") 或命名的 html 颜色 (例如 "橙色") 的 html 颜色格式。Represents the shape fill foreground color in HTML color format, of the form #RRGGBB (e.g. "FFA500") or as a named HTML color (e.g. "orange")

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

foregroundColor?: string;

属性值

string

transparency

返回或设置填充的透明度百分比,取值范围为 0.0(不透明)到 1.0(清晰)之间。Returns or sets the transparency percentage of the fill as a value from 0.0 (opaque) through 1.0 (clear). 如果形状类型不支持透明度或形状填充透明度不一致(例如使用渐变填充类型),则返回 null。Returns null if the shape type does not support transparency or the shape fill has inconsistent transparency, such as with a gradient fill type.

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

transparency?: number;

属性值

number