FillFormat — Aspose.Slides FOSS for C++ API Reference
FillFormat class kontrollerer udfyldningsegenskaber for former og tekst. Den understøtter solide, gradient-, mønster- og billedudfyldningstyper.: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/fill_format.h>class FillFormat: include/Aspose/Slides/Foss/fill_format.h
fill_type() | Returnerer den FillType (Solid, Gradient, Pattern, Picture, NoFill). | |
solid_fill_color() | SimpleColorFormat for solide udfyldninger. | |
gradient_format() | GradientFormat for gradientudfyldninger. | |
pattern_format() | PatternFormat for mønsterudfyldninger. | |
picture_fill_format() | PictureFillFormat for billedudfyldninger. | |
rotate_with_shape() | Om udfyldningen roterer med formen. |
IFillFormat-grænseflade
fill_type() / set_fill_type(FillType) | Hent/indstil udfyldningstypen. |
rotate_with_shape() / set_rotate_with_shape(NullableBool) | Hent/indstil rotationsadfærd. |
Brugseksempel
#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.