PowerPoint.Interfaces.ShapeFillData interface

An interface describing the data returned by calling shapeFill.toJSON().

Properties

foregroundColor

Represents the shape fill foreground color in HTML color format, in the form #RRGGBB (e.g., "FFA500") or as a named HTML color (e.g., "orange").

transparency

Specifies the transparency percentage of the fill as a value from 0.0 (opaque) through 1.0 (clear). Returns null if the shape type does not support transparency or the shape fill has inconsistent transparency, such as with a gradient fill type.

type

Returns the fill type of the shape. See PowerPoint.ShapeFillType for details.

Property Details

foregroundColor

Represents the shape fill foreground color in HTML color format, in the form #RRGGBB (e.g., "FFA500") or as a named HTML color (e.g., "orange").

foregroundColor?: string;

Property Value

string

Remarks

[ API set: PowerPointApi 1.4 ]

transparency

Specifies the transparency percentage of the fill as a value from 0.0 (opaque) through 1.0 (clear). Returns null if the shape type does not support transparency or the shape fill has inconsistent transparency, such as with a gradient fill type.

transparency?: number;

Property Value

number

Remarks

[ API set: PowerPointApi 1.4 ]

type

Returns the fill type of the shape. See PowerPoint.ShapeFillType for details.

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

Property Value

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

Remarks

[ API set: PowerPointApi 1.4 ]