Hyperlink

更新时间:
复制 MD 格式

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.

Important

Only JS-SDK V1.1.14 and later support this feature.

  • Syntax

    expression.ActivePresentation.SlideShowWindow.View.Slide.Hyperlinks

    expression: 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.

Important

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.

Important

Only JS-SDK V1.1.14 and later support this feature.

  • Syntax

    expression.ActivePresentation.SlideShowWindow.View.Slide.Hyperlinks.Count

    expression: 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
    }