FillFormat — Aspose.Slides FOSS for C++ API Reference
Examples FillFormat класът контролира свойствата за запълване на форми и текст. Той поддържа типове запълване solid, gradient, pattern и picture.
Examples: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/fill_format.h>class FillFormatExamples: include/Aspose/Slides/Foss/fill_format.h
Examples
| Examples | Examples | Examples |
|---|---|---|
fill_type() | Examples | Връща FillType (Solid, Gradient, Pattern, Picture, NoFill). |
solid_fill_color() | Examples | Examples SimpleColorFormat за solid запълвания. |
gradient_format() | Examples | Examples GradientFormat за gradient запълвания. |
pattern_format() | Examples | Examples PatternFormat за pattern запълвания. |
picture_fill_format() | Examples | Examples PictureFillFormat за picture запълвания. |
rotate_with_shape() | Examples | Дали запълването се върти заедно с формата. |
IFillFormat интерфейс
| Examples | Examples |
|---|---|
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.