PowerPoint.Interfaces.ShapeFillUpdateData interface

用于更新对象上的 ShapeFill 数据的接口,用于 在 中使用 shapeFill.set({ ... })

属性

foregroundColor

以 HTML 颜色格式表示形状填充前景色,格式 #RRGGBB (例如“FFA500”) 或命名 HTML 颜色 (例如“橙色”) 。

transparency

将填充的透明度百分比指定为从 0.0 (不透明) 到 1.0 (清除) 的值。 null如果形状类型不支持透明度或形状填充的透明度不一致(例如渐变填充类型),则返回 。

属性详细信息

foregroundColor

以 HTML 颜色格式表示形状填充前景色,格式 #RRGGBB (例如“FFA500”) 或命名 HTML 颜色 (例如“橙色”) 。

foregroundColor?: string;

属性值

string

注解

[ API 集:PowerPointApi 1.4 ]

transparency

将填充的透明度百分比指定为从 0.0 (不透明) 到 1.0 (清除) 的值。 null如果形状类型不支持透明度或形状填充的透明度不一致(例如渐变填充类型),则返回 。

transparency?: number;

属性值

number

注解

[ API 集:PowerPointApi 1.4 ]