FillFormat — Aspose.Slides FOSS for C++ API Reference

The FillFormat class controls fill properties for shapes and text. It supports solid, gradient, pattern, and picture fill types.

Namespace: Aspose::Slides::Foss

#include <Aspose/Slides/Foss/fill_format.h>
class FillFormat

Header: include/Aspose/Slides/Foss/fill_format.h


Properties

PropertyAccessorDescription
fill_type()ReadReturns the FillType (Solid, Gradient, Pattern, Picture, NoFill).
solid_fill_color()ReadReturns SimpleColorFormat for solid fills.
gradient_format()ReadReturns GradientFormat for gradient fills.
pattern_format()ReadReturns PatternFormat for pattern fills.
picture_fill_format()ReadReturns PictureFillFormat for picture fills.
rotate_with_shape()ReadWhether the fill rotates with the shape.

IFillFormat Interface

MethodDescription
fill_type() / set_fill_type(FillType)Get/set the fill type.
rotate_with_shape() / set_rotate_with_shape(NullableBool)Get/set rotation behavior.

Usage Example

#include <Aspose/Slides/Foss/presentation.h>
using namespace Aspose::Slides::Foss;

Presentation prs("deck.pptx");
auto& shape = prs.slides()[0].shapes()[0];
auto& fill = shape.fill_format();
// Check fill type, access gradient/pattern properties, etc.

See Also