RelationshipsManager
Overview
RelationshipsManager is a class in Aspose.Slides for Python.
Manages relationships (.rels) files in an OPC package.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
part_name | str | Read | Holds the name of the package part containing the relationships |
Methods
| Signature | Description |
|---|---|
__init__(package: OpcPackage, source_part: str) | Initialize the relationships manager for a specific part. |
get_relationship(rel_id: str) → Optional[Relationship] | Get a relationship by ID. |
get_relationships_by_type(rel_type: str) → list[Relationship] | Get all relationships of a specific type. |
get_all_relationships() → list[Relationship] | Get all relationships. |
add_relationship(rel_type: str, target: str, rel_id: Optional[str], target_mode: Optional[str]) → str | Add a new relationship. |
remove_relationship(rel_id: str) → bool | Remove a relationship by ID. |
save() | Save the relationships back to the package. |