CustomPropertiesPart
Overview
CustomPropertiesPart is a class in Aspose.Slides for CPP.
Inherits from: CustomPropertiesPart.
Parse and serialize docProps/custom.xml. Manages a dictionary of named custom properties, each with a typed value (string, int, double, bool, or datetime). Properties are lazily created: the XML part is only written when save() is called and the part is dirty.
Methods
| Signature | Description |
|---|---|
count() → int32_t | Returns the total number of custom properties |
contains(name: std::string_view) → bool | Check if a property with the given name exists. |
get_name(index: int32_t) → std::string | Get the name of a property by index. |
get_value(name: std::string_view) → std::optional<CustomPropertyValue> | Get the value of a property by name. |
set_value(name: std::string_view, value: CustomPropertyValue) | Set a property value. Creates the property if it does not exist. |
remove(name: std::string_view) → bool | Remove a property by name. |
clear() | Remove all custom properties and mark dirty. |
save() | Parse and serialize docProps/custom.xml. Manages a dictionary of named custom properties, each with a typed value (string, int, double, bool, or datetime). Properties are lazily created: |