このトピックでは、プレゼンテーションフォントを管理するための API 操作について説明します。
フォント
ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(index).TextFrame.GetTextRange(Begin,End).Font
指定されたテキストのテキスト属性を定義します。
この機能は、JavaScript 1.1.14 以降の SDK でのみサポートされています。
構文
expression.ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(index).TextFrame.GetTextRange(Begin,End).Font
式: ドキュメント型のアプリケーションオブジェクト。
パラメータ
パラメータ
データ型
デフォルト値
必須
説明
Begin
数値
はい
テキストの開始位置。
End
数値
はい
テキストの終了位置。
例
async function example() { await instance.ready(); const app = instance.Application; // 指定された範囲内のフォントオブジェクトを返します。これには、指定されたテキストのテキスト属性が含まれます。 const Font = app.ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(1).TextFrame.GetTextRang(1,2).Font; }
プロパティ
ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(index).TextFrame.GetTextRange(Begin,End).Font.Bold
フォントが太字かどうかを確認します。
この機能は、JavaScript 1.1.14 以降の SDK でのみサポートされています。
構文
expression.ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(index).TextFrame.GetTextRange(Begin,End).Font.Bold
式: ドキュメント型のアプリケーションオブジェクト。
パラメータ
パラメータ
データ型
必須
説明
Begin
数値
はい
テキストの開始位置。
End
数値
はい
テキストの終了位置。
例
async function example() { await instance.ready(); const app = instance.Application; // フォントの太字の書式設定を取得します。 const Bold = app.ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(1).TextFrame.GetTextRang(1,2).Font.Bold; }
ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(index).TextFrame.GetTextRange(Begin,End).Font.Italic
フォントスタイルが斜体かどうかを確認します。
この機能は、JavaScript 1.1.14 以降の SDK でのみサポートされています。
構文
expression.ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(index).TextFrame.GetTextRange(Begin,End).Font.Italic
式: ドキュメント型のアプリケーションオブジェクト。
パラメータ
パラメータ
データ型
必須
説明
Begin
数値
はい
テキストの開始位置。
End
数値
はい
テキストの終了位置。
例
async function example() { await instance.ready(); const app = instance.Application; // フォントの斜体の書式設定を取得します。 const Italic = app.ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(1).TextFrame.GetTextRang(1,2).Font.Italic; }
ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(index).TextFrame.GetTextRange(Begin,End).Font.Name
フォント名を取得します。
この機能は、JavaScript 1.1.14 以降の SDK でのみサポートされています。
構文
expression.ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(index).TextFrame.GetTextRange(Begin,End).Font
式: ドキュメント型のアプリケーションオブジェクト。
パラメータ
パラメータ
データ型
必須
説明
Begin
数値
はい
テキストの開始位置。
End
数値
はい
テキストの終了位置。
例
async function example() { await instance.ready(); const app = instance.Application; // フォント名を取得します。 const Name = app.ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(1).TextFrame.GetTextRang(1,2).Font.Name; }
ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(index).TextFrame.GetTextRange(Begin,End).Font.Size
フォントサイズを取得します。
この機能は、JavaScript 1.1.14 以降の SDK でのみサポートされています。
構文
expression.ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(index).TextFrame.GetTextRange(Begin,End).Font.Size
式: ドキュメント型のアプリケーションオブジェクト。
パラメータ
パラメータ
データ型
必須
説明
Begin
数値
はい
テキストの開始位置。
End
数値
はい
テキストの終了位置。
例
async function example() { await instance.ready(); const app = instance.Application; // フォントサイズを取得します。 const Size = app.ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(1).TextFrame.GetTextRang(1,2).Font.Size; }
ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(index).TextFrame.GetTextRange(Begin,End).Font.Underline
下線の書式設定を取得します。
この機能は、JavaScript 1.1.14 以降の SDK でのみサポートされています。
構文
expression.ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(index).TextFrame.GetTextRange(Begin,End).Font.Underline
式: ドキュメント型のアプリケーションオブジェクト。
パラメータ
パラメータ
データ型
必須
説明
Begin
数値
はい
テキストの開始位置。
End
数値
はい
テキストの終了位置。
例
async function example() { await instance.ready(); const app = instance.Application; // 下線の書式設定を取得します。 const Underline = app.ActivePresentation.SlideShowWindow.View.Slide.Shapes.Item(1).TextFrame.GetTextRang(1,2).Font.Underline; }