Skip to main content

ShapeFill

PowerPoint.ShapeFill. Import from @reductoai/pptx/officejs.

ShapeFill properties

ShapeFill.clear()

ShapeFill.removeGradient()

Extension (Shape Fill > Gradient > No Gradient): a gradient becomes its first stop’s solid colour.

ShapeFill.setBackground()

Extension (VBA FillFormat.Background): the shape shows the slide background (p:sp@useBgFill).

ShapeFill.setGradientFill()

Extension, as SlideBackgroundFill.setGradientFill: two stops from the fill colour to its shade.

ShapeFill.setGradientPreset()

Extension (Shape Fill > Gradient): a Light or Dark Variation of the fill’s colour in one of the gallery’s directions. A gradient fill keeps its stops and takes the direction.

ShapeFill.setImage()

Also takes the image’s bytes.

ShapeFill.setSolidColor()

ShapeLineFormat

PowerPoint.ShapeLineFormat over a:ln. Import from @reductoai/pptx/officejs.

ShapeLineFormat properties

ShapeLineFormat.setGradientFill()

Extension, as ShapeFill.setGradientFill: a two-stop gradient outline from the line colour to its shade.

GradientStops

VBA GradientStops. A gradient keeps at least two stops, as in PowerPoint. Import from @reductoai/pptx/officejs.

GradientStops properties

GradientStops.delete()

GradientStops.getItemAt()

GradientStops.insert()

Adds a stop; without index it goes in position order.

ShadowFormat

Extension (VBA ShadowFormat): an outer or inner shadow, a:effectLst/a:outerShdw or a:innerShdw. A getter reads the first target; null when it has no shadow. Import from @reductoai/pptx/officejs.

ShadowFormat properties

GlowFormat

Extension (VBA GlowFormat): a coloured, blurred outline, a:effectLst/a:glow. Import from @reductoai/pptx/officejs.

GlowFormat properties

ReflectionFormat

Extension (VBA ReflectionFormat): a faded mirror copy below the shape, a:effectLst/a:reflection. Import from @reductoai/pptx/officejs.

ReflectionFormat properties

SoftEdgeFormat

Extension (VBA SoftEdgeFormat): edges that fade out, a:effectLst/a:softEdge. Import from @reductoai/pptx/officejs.

SoftEdgeFormat properties

PictureFormat

Headless extension, VBA PictureFormat; only on pictures (p:pic). Import from @reductoai/pptx/officejs.

PictureFormat properties

PictureFormat.cropToAspectRatio()

Extension (Crop > Aspect Ratio): the largest frame of width:height inside this one, centred, with the picture kept in place. Without a ratio, the picture’s own.

PictureFormat.cropToFill()

Extension (Crop > Fill): the whole picture, centred, covers the frame; the rest is cut.

PictureFormat.cropToFit()

Extension (Crop > Fit): the whole picture, centred, shows inside the frame.

PictureFormat.setImage()

Extension (PowerPoint’s Change Picture): shows another PNG, JPEG, GIF, EMF or WMF in this picture, keeping its size, place, crop and effects. Other shapes showing the old image keep it.

Crop

VBA Crop: the picture and its visible frame, both in slide points. Import from @reductoai/pptx/officejs.

Crop properties