PowerPoint.Interfaces.ShapeFillData interface

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

注解

使用方

属性

foregroundColor

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

transparency

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

type

返回形状的填充类型。 有关详细信息,请参阅 PowerPoint.ShapeFillType

属性详细信息

foregroundColor

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

foregroundColor?: string;

属性值

string

注解

API 集:PowerPointApi 1.4

transparency

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

transparency?: number;

属性值

number

注解

API 集:PowerPointApi 1.4

type

返回形状的填充类型。 有关详细信息,请参阅 PowerPoint.ShapeFillType

type?: PowerPoint.ShapeFillType | "NoFill" | "Solid" | "Gradient" | "Pattern" | "PictureAndTexture" | "SlideBackground";

属性值

PowerPoint.ShapeFillType | "NoFill" | "Solid" | "Gradient" | "Pattern" | "PictureAndTexture" | "SlideBackground"

注解

API 集:PowerPointApi 1.4