RelationshipsManager

General

RelationshipsManager és una classe en Aspose.Slides per a Python.

Gestiona relacions (.rels) en un paquet OPC.

Propietats

NameTypeAccessDescription
part_namestrReadHolds the name of the package part containing the relationships

Mètodes

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.
 Català