FillFormat

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 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 สำหรับการเติมลายแบบ.
picture_fill_format()PropertiesProperties PictureFillFormat สำหรับการเติมรูปภาพ.
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.

ดูเพิ่มเติม

 ภาษาไทย