Qu

pptx.set_link

Builtin index · File I/O

result = pptx.set_link(p, i, shape, url, [text=])

Input: p, i, shape, url, text · Output: result

What it is

Makes every occurrence of text in the shape a hyperlink to url (splitting a run where the match is only part of it; the pieces keep its formatting), or without text= all of the shape's text.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = pptx.set_link(p, i, shape, url, [text=])
p —pptx.links(p, i) lists the slide's links as records with shape, text and url.
i —pptx.links(p, i) lists the slide's links as records with shape, text and url.
shape —the pieces keep its formatting), or without text= all of the shape's text.
url —Makes every occurrence of text in the shape a hyperlink to url (splitting a run where the match is only part of it.
text optionalthe pieces keep its formatting), or without text= all of the shape's text.
result number
Returns the number linked. pptx.links(p, i) lists the slide's links as records with shape, text and url. *Added in v0.4.5*

Examples

No documentation example calls this form yet. The File I/O chapter is where one belongs.