RelationshipsManager

RelationshipsManager

Overview

RelationshipsManager is a class in Aspose.Slides for Python.

Manages relationships (.rels) files in an OPC package.

Properties

NameTypeAccessDescription
part_namestrReadHolds the name of the package part containing the relationships

Methods

SignatureDescription
__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])strAdd a new relationship.
remove_relationship(rel_id: str)boolRemove a relationship by ID.
save()Save the relationships back to the package.