FillFormat — Aspose.Slides FOSS for C++ API Reference
Enumerations FillFormat class kiểm soát các thuộc tính fill cho shapes và text. Nó hỗ trợ các loại fill solid, gradient, pattern và picture.
Enumerations: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/fill_format.h>class FillFormatEnumerations: include/Aspose/Slides/Foss/fill_format.h
Enumerations
| Enumerations | Enumerations | Enumerations |
|---|---|---|
fill_type() | Enumerations | Trả về FillType (Solid, Gradient, Pattern, Picture, NoFill). |
solid_fill_color() | Enumerations | Enumerations SimpleColorFormat cho solid fills. |
gradient_format() | Enumerations | Enumerations GradientFormat cho gradient fills. |
pattern_format() | Enumerations | Enumerations PatternFormat cho các mẫu tô. |
picture_fill_format() | Enumerations | Enumerations PictureFillFormat cho các hình ảnh được tô. |
rotate_with_shape() | Enumerations | Liệu việc tô có quay cùng hình dạng hay không. |
Giao diện IFillFormat
| Enumerations | Enumerations |
|---|---|
fill_type() / set_fill_type(FillType) | Lấy/đặt loại tô. |
rotate_with_shape() / set_rotate_with_shape(NullableBool) | Lấy/đặt hành vi quay. |
Ví dụ sử dụng
#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.