FillFormat

Overview

FillFormat is a class in Aspose.Slides FOSS for C++.

Represents the fill formatting properties of a shape.

Properties

NameTypeAccessDescription
FillTypeFillTypeReadProperty gets or sets the shape’s fill type
SimpleColorFormatSimpleColorFormatReadProperty provides access to solid color fill settings
GradientFormatGradientFormatReadProperty provides access to gradient fill settings
PatternFormatPatternFormatReadProperty provides access to pattern fill settings
PictureFillFormatPictureFillFormatReadProperty provides access to picture fill settings
NullableBoolNullableBoolReadProperty indicates whether the fill is enabled (nullable boolean)

Methods

SignatureDescription
FillType()FillTypeProperty gets or sets the shape’s fill type
SimpleColorFormat()SimpleColorFormatProperty provides access to solid color fill settings
SimpleColorFormat()SimpleColorFormat
GradientFormat()GradientFormatProperty provides access to gradient fill settings
GradientFormat()GradientFormat
PatternFormat()PatternFormatProperty provides access to pattern fill settings
PatternFormat()PatternFormat
PictureFillFormat()PictureFillFormatProperty provides access to picture fill settings
PictureFillFormat()PictureFillFormat
NullableBool()NullableBoolProperty 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_nodeFind 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_nodeInsert 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_nodeGet 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.

See Also