FillFormat — Aspose.Slides FOSS for C++ API Reference
Properties FillFormat class ควบคุมคุณสมบัติการเติมสำหรับ shapes และ text. รองรับประเภทการเติมแบบ 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 สำหรับการเติมลายแบบ. |
picture_fill_format() | Properties | Properties PictureFillFormat สำหรับการเติมรูปภาพ. |
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.