FillFormat — Aspose.Slides FOSS for C++ API Reference
Properties FillFormat 类控制形状和文本的填充属性。它支持 solid、gradient、pattern 和 picture 填充类型。.
Properties: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/fill_format.h>class FillFormatProperties: include/Aspose/Slides/Foss/fill_format.h
Properties
| Properties | Properties | Properties |
|---|---|---|
fill_type() | Properties | 返回 FillType (Solid, Gradient, Pattern, Picture, NoFill)。. |
solid_fill_color() | Properties | Properties SimpleColorFormat 用于 solid 填充。. |
gradient_format() | Properties | Properties GradientFormat 用于 gradient 填充。. |
pattern_format() | Properties | Properties PatternFormat 用于 pattern 填充。. |
picture_fill_format() | Properties | Properties PictureFillFormat 用于 picture 填充。. |
rotate_with_shape() | Properties | 填充是否随形状旋转。. |
IFillFormat 接口
| Properties | Properties |
|---|---|
fill_type() / set_fill_type(FillType) | 获取/设置填充类型。. |
rotate_with_shape() / set_rotate_with_shape(NullableBool) | 获取/设置旋转行为。. |
使用示例
#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.