FillFormat — Aspose.Slides FOSS for C++ API Reference

FillFormat klasa kontrolira svojstva ispune za oblike i tekst. Podržava vrste ispune: solid, gradient, pattern i picture.

: Aspose::Slides::Foss

#include <Aspose/Slides/Foss/fill_format.h>
class FillFormat

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


fill_type()
Vraća FillType (Solid, Gradient, Pattern, Picture, NoFill).
solid_fill_color()
SimpleColorFormat za solid ispune.
gradient_format()
GradientFormat za gradient ispune.
pattern_format()
PatternFormat za pattern ispune.
picture_fill_format()
PictureFillFormat za picture ispune.
rotate_with_shape()
Da li se ispuna rotira zajedno s oblikom.

IFillFormat sučelje

fill_type() / set_fill_type(FillType)Dohvati/postavi vrstu ispune.
rotate_with_shape() / set_rotate_with_shape(NullableBool)Dohvati/postavi ponašanje rotacije.

Primjer upotrebe

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

Vidi također

 Hrvatski