FillFormat

Overview

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

Represents the fill formatting properties of a shape.

This class provides 31 methods for working with FillFormat objects in C++ programs. Available methods include: FillFormat, FillType, GradientFormat, NullableBool, PatternFormat, PictureFillFormat, SimpleColorFormat, fill_type, find_fill_element, get_or_create_fill, gradient_format, init_internal, and 11 additional methods. All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package. Properties: FillType, GradientFormat, NullableBool, PatternFormat, PictureFillFormat, SimpleColorFormat.

Properties

NameTypeAccessDescription
FillTypeFillTypeReadGets the fill type.
SimpleColorFormatSimpleColorFormatReadGets the simple color format.
GradientFormatGradientFormatReadGets the gradient format.
PatternFormatPatternFormatReadGets the pattern format.
PictureFillFormatPictureFillFormatReadGets the picture fill format.
NullableBoolNullableBoolReadGets the nullable bool.

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)
FillFormat()
~FillFormat()
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.
fill_type()FillTypeReturns the fill type.
set_fill_type(value: FillType)
solid_fill_color()SimpleColorFormatReturns the solid fill color format.
solid_fill_color()SimpleColorFormatReturns the solid fill color format.
gradient_format()GradientFormatReturns the gradient fill format.
gradient_format()GradientFormatReturns the gradient fill format.
pattern_format()PatternFormatReturns the pattern fill format.
pattern_format()PatternFormatReturns the pattern fill format.
picture_fill_format()PictureFillFormatReturns the picture fill format.
picture_fill_format()PictureFillFormatReturns the picture fill format.
rotate_with_shape()NullableBoolDetermines whether the fill should be rotated with shape.
set_rotate_with_shape(value: NullableBool)

See Also