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 FillFormat

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


Examples

ExamplesExamplesExamples
fill_type()ExamplesВръща FillType (Solid, Gradient, Pattern, Picture, NoFill).
solid_fill_color()ExamplesExamples SimpleColorFormat за solid запълвания.
gradient_format()ExamplesExamples GradientFormat за gradient запълвания.
pattern_format()ExamplesExamples PatternFormat за pattern запълвания.
picture_fill_format()ExamplesExamples PictureFillFormat за picture запълвания.
rotate_with_shape()ExamplesДали запълването се върти заедно с формата.

IFillFormat интерфейс

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

Вижте също

 Български