FillFormat
Overview
FillFormat is a class in Aspose.Slides FOSS for C++.
Represents the fill formatting properties of a shape.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
FillType | FillType | Read | Property gets or sets the shape’s fill type |
SimpleColorFormat | SimpleColorFormat | Read | Property provides access to solid color fill settings |
GradientFormat | GradientFormat | Read | Property provides access to gradient fill settings |
PatternFormat | PatternFormat | Read | Property provides access to pattern fill settings |
PictureFillFormat | PictureFillFormat | Read | Property provides access to picture fill settings |
NullableBool | NullableBool | Read | Property indicates whether the fill is enabled (nullable boolean) |
Methods
| Signature | Description |
|---|---|
FillType() → FillType | Property gets or sets the shape’s fill type |
SimpleColorFormat() → SimpleColorFormat | Property provides access to solid color fill settings |
SimpleColorFormat() → SimpleColorFormat | |
GradientFormat() → GradientFormat | Property provides access to gradient fill settings |
GradientFormat() → GradientFormat | |
PatternFormat() → PatternFormat | Property provides access to pattern fill settings |
PatternFormat() → PatternFormat | |
PictureFillFormat() → PictureFillFormat | Property provides access to picture fill settings |
PictureFillFormat() → PictureFillFormat | |
NullableBool() → NullableBool | Property indicates whether the fill is enabled (nullable boolean) |
init_internal(parent_element: pugi::xml_node, save_callback: std::function<void()>) | Initialize XML-backed fill format. (e.g., , , , ). |
find_fill_element() → pugi::xml_node | Find the first fill child element in the parent. |
remove_fill_elements() | Remove all existing fill child elements from parent. |
insert_fill_element(tag: std::string_view) → pugi::xml_node | Insert a fill element at the correct OOXML position in the parent. Fill elements must appear after geometry and before . |
get_or_create_fill(tag: std::string_view) → pugi::xml_node | Get existing fill element of given tag, or create it (removing others). Adds default children for gradient and picture fills. |
save() | Save changes via the save callback. |
serialize_to_xml(sp_pr: pugi::xml_node) | Serialize the in-memory fill format state to XML under the given spPr node. Used during Presentation::save() for shapes without XML backing. |