CustomPropertiesPart
Overview
CustomPropertiesPart is a class in Aspose.Slides FOSS for C++.
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.
This class provides 8 methods for working with CustomPropertiesPart objects in Go programs.
Available methods include: clear, contains, count, get_name, get_value, remove, save, set_value.
All exported members are accessible to any Go application after adding the package via go get github.com/aspose-pdf-foss/aspose-pdf-foss-for-go.
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: |