Paper Office
paper-docxAPI referenceopc.oxml

CT_Relationship

paper-docx 0.2.0 API reference

<Relationship> element, representing a single relationship from source to target part.

Attributes

rId

attributerId

String held in the Id attribute of this <Relationship> element.

reltype

attributereltype

String held in the Type attribute of this <Relationship> element.

target_mode

attributetarget_mode

String held in the TargetMode attribute of this <Relationship> element, either Internal or External.

Defaults to Internal.

target_ref

attributetarget_ref

String held in the Target attribute of this <Relationship> element.

xml

attributexmlstr

Return XML string for this element, suitable for testing purposes.

Pretty printed for readability and without an XML declaration at the top.

Functions

new

funcnew(rId: str, reltype: str, target: str, target_mode: str = RTM.INTERNAL)

Return a new <Relationship> element.

paramrIdstr
paramreltypestr
paramtargetstr
paramtarget_modestr
= RTM.INTERNAL

On this page