FillFormat

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 FillFormat

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


Properties

PropertiesPropertiesProperties
fill_type()Properties返回 FillType (Solid, Gradient, Pattern, Picture, NoFill)。.
solid_fill_color()PropertiesProperties SimpleColorFormat 用于 solid 填充。.
gradient_format()PropertiesProperties GradientFormat 用于 gradient 填充。.
pattern_format()PropertiesProperties PatternFormat 用于 pattern 填充。.
picture_fill_format()PropertiesProperties PictureFillFormat 用于 picture 填充。.
rotate_with_shape()Properties填充是否随形状旋转。.

IFillFormat 接口

PropertiesProperties
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.

另见

 中文