This topic describes the API operations that are related to the Hyperlink object of presentation documents.
Hyperlinks
ActivePresentation.SlideShowWindow.View.Slide.Hyperlinks
Obtains all hyperlinks in a presentation.
Only JS-SDK V1.1.14 and later support this feature.
Syntax
expression.ActivePresentation.SlideShowWindow.View.Slide.Hyperlinksexpression: the document type application object.
Example
async function example() { await instance.ready(); const app = instance.Application; // Obtain all hyperlinks in a presentation. await app.ActivePresentation.SlideShowWindow.View.Slide.Hyperlinks }
Method
ActivePresentation.SlideShowWindow.View.Slide.Hyperlinks.Item()
You can obtain a single Hyperlink object by using the Item() method.
Only JS-SDK V1.1.14 and later support this feature.
Syntax
expression.ActivePresentation.SlideShowWindow.View.Slide.Hyperlinks.Item(Index)expression: the document type application object.
Parameters
Property
Type
Required
Description
Index
Number
Yes
The index number of the hyperlink.
Example
async function example() { await instance.ready(); const app = instance.Application; // Obtain a single Hyperlink object. await app.ActivePresentation.SlideShowWindow.View.Slide.Hyperlinks.Item(1); }
Property
ActivePresentation.SlideShowWindow.View.Slide.Hyperlinks.Count
You can obtain the number of hyperlinks in a presentation by using the Count property.
Only JS-SDK V1.1.14 and later support this feature.
Syntax
expression.ActivePresentation.SlideShowWindow.View.Slide.Hyperlinks.Countexpression: the document type application object.
Example
async function example() { await instance.ready(); const app = instance.Application; // Obtain the number of hyperlinks. await app.ActivePresentation.SlideShowWindow.View.Slide.Hyperlinks.Count }