Excel.Interfaces.ShapeFillLoadOptions interface

代表 shape 对象的填充格式。Represents the fill formatting of a shape object.

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

属性

$all
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 ]

type

返回形状的填充类型。Returns the fill type of the shape. 只读。Read-only. 有关详细信息,请参阅 Excel.ShapeFillType。See Excel.ShapeFillType for details.

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

属性详细信息

$all

$all?: boolean;

属性值

boolean

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?: boolean;

属性值

boolean

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?: boolean;

属性值

boolean

type

返回形状的填充类型。Returns the fill type of the shape. 只读。Read-only. 有关详细信息,请参阅 Excel.ShapeFillType。See Excel.ShapeFillType for details.

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

type?: boolean;

属性值

boolean