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 FillFormatHeader: include/Aspose/Slides/Foss/fill_format.h
Properties
| Property | Accessor | Description |
|---|---|---|
fill_type() | Read | Returns the FillType (Solid, Gradient, Pattern, Picture, NoFill). |
solid_fill_color() | Read | Returns SimpleColorFormat for solid fills. |
gradient_format() | Read | Returns GradientFormat for gradient fills. |
pattern_format() | Read | Returns PatternFormat for pattern fills. |
picture_fill_format() | Read | Returns PictureFillFormat for picture fills. |
rotate_with_shape() | Read | Whether the fill rotates with the shape. |
IFillFormat Interface
| Method | Description |
|---|---|
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.