すべてのプロダクト
Search
ドキュメントセンター

Intelligent Media Management:タグ

最終更新日:Dec 27, 2024

このトピックでは、プレゼンテーションタグに関連する API 操作について説明します。

タグ

ActivePresentation.SlideShowWindow.View.Slide.Tags

アクティブなプレゼンテーションの現在のスライドにあるすべてのタグを取得します。

重要

JS-SDK V1.1.14 以降でのみこの機能がサポートされています。

  • 構文

    expression.ActivePresentation.SlideShowWindow.View.Slide.Tags

    expression: アプリケーションオブジェクト。

  • async function example() {
      await instance.ready();
    
      const app = instance.Application;
      
      // Presentation オブジェクトを取得します。
      const presentation = await app.ActivePresentation;
    
      // 現在のスライドのすべてのタグを取得します。
      const view = await presentation.SlideShowWindow.View.Slide.Tags;
    }

メソッド

ActivePresentation.SlideShowWindow.View.Slide.Tags.Item()

指定されたタグを取得します。

重要

JS-SDK V1.1.14 以降でのみこの機能がサポートされています。

  • 構文

    expression.ActivePresentation.SlideShowWindow.View.Slide.Tags.Item(Index)

    expression: アプリケーションオブジェクト。

  • パラメーター

    パラメーター

    タイプ

    必須

    説明

    Index

    数値

    はい

    スライドのインデックス番号。

  • async function example() {
      await instance.ready();
    
      const app = instance.Application;
    
      // タグを取得します。
      await app.ActivePresentation.SlideShowWindow.View.Slide.Tags.Item(1);
    }

ActivePresentation.SlideShowWindow.View.Slide.Tags.Add()

タグを追加します。

重要

JS-SDK V1.1.14 以降でのみこの機能がサポートされています。

  • 構文

    expression.ActivePresentation.SlideShowWindow.View.Slide.Tags.Add({Name,Value})

    expression: アプリケーションオブジェクト。

  • パラメーター

    パラメーター

    タイプ

    必須

    説明

    Name

    文字列

    はい

    タグの名前。

    Value

    文字列

    はい

    タグの値。

  • async function example() {
      await instance.ready();
    
      const app = instance.Application;
     
      // タグを追加します。
      await app.ActivePresentation.SlideShowWindow.View.Slide.Tags.Add({Name:'test',Value:'123'});
    }

ActivePresentation.SlideShowWindow.View.Slide.Tags.Delete()

タグを削除します。

重要

JS-SDK V1.1.14 以降でのみこの機能がサポートされています。

  • 構文

    expression.ActivePresentation.SlideShowWindow.View.Slide.Tags.Delete({Name})

    expression: アプリケーションオブジェクト。

  • パラメーター

    パラメーター

    タイプ

    必須

    説明

    Name

    文字列

    はい

    タグの名前。

  • async function example() {
      await instance.ready();
    
      const app = instance.Application;
    
      // 指定されたタグを削除します。
      await app.ActivePresentation.SlideShowWindow.View.Slide.Tags.Delete({Name:'test'});
    }

ActivePresentation.SlideShowWindow.View.Slide.Tags.Has()

指定されたタグが存在するかどうかを判断します。

重要

JS-SDK V1.1.14 以降でのみこの機能がサポートされています。

  • 構文

    expression.ActivePresentation.SlideShowWindow.View.Slide.Tags.Has({Name})

    expression: アプリケーションオブジェクト。

  • パラメーター

    パラメーター

    タイプ

    必須

    説明

    Name

    文字列

    はい

    タグの名前。

  • async function example() {
      await instance.ready();
    
      const app = instance.Application;
    
      // タグが存在するかどうかを判断します。
      await app.ActivePresentation.SlideShowWindow.View.Slide.Tags.Has({Name:'test'});
    }

ActivePresentation.SlideShowWindow.View.Slide.Tags.Name()

指定されたタグの名前を取得します。

重要

JS-SDK V1.1.14 以降でのみこの機能がサポートされています。

  • 構文

    expression.ActivePresentation.SlideShowWindow.View.Slide.Tags.Name({Index})

    expression: アプリケーションオブジェクト。

  • パラメーター

    パラメーター

    タイプ

    必須

    説明

    Index

    数値

    はい

    現在のスライドのインデックス番号。

  • async function example() {
      await instance.ready();
    
      const app = instance.Application;
      // 現在のスライドの 2 番目のタグの名前を取得します。
      const Name = await app.ActivePresentation.SlideShowWindow.View.Slide.Tags.Name({ Index: 2 });
    }

ActivePresentation.SlideShowWindow.View.Slide.Tags.Value()

指定されたタグの値を取得します。

重要

JS-SDK V1.1.14 以降でのみこの機能がサポートされています。

  • 構文

    expression.ActivePresentation.SlideShowWindow.View.Slide.Tags.Value({Index})

    expression: アプリケーションオブジェクト。

  • パラメーター

    パラメーター

    タイプ

    必須

    説明

    Index

    数値

    はい

    現在のスライドのインデックス番号。

  • async function example() {
      await instance.ready();
    
      const app = instance.Application;
      // 現在のスライドの 2 番目のタグの値を取得します。
      const Name = await app.ActivePresentation.SlideShowWindow.View.Slide.Tags.Value({ Index: 2 });
    }

プロパティ

ActivePresentation.SlideShowWindow.View.Slide.Tags.Count

アクティブなプレゼンテーションの現在のスライドにあるタグの数をカウントします。

重要

JS-SDK V1.1.14 以降でのみこの機能がサポートされています。

  • 構文

    expression.ActivePresentation.SlideShowWindow.View.Slide.Tags.Count

    expression: アプリケーションオブジェクト。

  • async function example() {
      await instance.ready();
    
      const app = instance.Application;
      
      // Presentation オブジェクトを取得します。
      const presentation = await app.ActivePresentation;
    
      // 現在のスライドのすべてのタグを取得します。
      const view = await presentation.SlideShowWindow.View.Slide.Tags;
    
      // 現在のスライドのタグの数を取得します。
      const count = await view.Count;
      console.log(count);
    }

ActivePresentation.SlideShowWindow.View.Slide.Tags.Parent

指定されたタグの親オブジェクトを取得します。

重要

JS-SDK V1.1.14 以降でのみこの機能がサポートされています。

  • 構文

    expression.ActivePresentation.SlideShowWindow.View.Slide.Tags.Parent

    expression: アプリケーションオブジェクト。

  • async function example() {
      await instance.ready();
    
      const app = instance.Application;
      
      // Presentation オブジェクトを取得します。
      const presentation = await app.ActivePresentation;
    
      // 現在のスライドのすべてのタグを取得します。
      const view = await presentation.SlideShowWindow.View.Slide.Tags;
    
      // タグの親オブジェクトを取得します。
      const Parent = await view.Parent;
      console.log(Parent);
    }