CustomPropertiesPart
General
CustomPropertiesPart és una classe en Aspose.Slides FOSS per a C++.
Parse i serialitzar docProps/custom.xml. Gestiona un diccionari de propietats personalitzades anomenades, cadascuna amb un valor digitat (string, int, double, bool o datetime). Les propietates es creen lentament: la part XML només s’escriu quan se l’apella save() i la parteja és brut.
Mètodes
| 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: |