getMasterNames
クラス: mlreportgen.ppt.Presentation
名前空間: mlreportgen.ppt
プレゼンテーションのスライド マスターの名前を取得する
説明
は、プレゼンテーションのスライド マスターの名前を返します。mNames
= getMasterNames(presentation
)
例
既定のテンプレートでのスライド マスター名の取得
プレゼンテーションにスライドを追加するときに使用するレイアウト名を見つけることができるように、スライド マスター名を取得します。
PPT API クラスに長い完全修飾名を使用せずに済むよう、PPT 名前空間をインポートします。
import mlreportgen.ppt.*
プレゼンテーションを作成します。
ppt = Presentation("myPresentation");
open(ppt);
プレゼンテーションのマスター スライドの名前を取得します。既定の PPT API テンプレートのスライド マスターは 1 つのみです。
mNames = getMasterNames(ppt); mNames{1}
ans = 'Office Theme'
スライド マスターのレイアウトの名前を取得します。
layouts = getLayoutNames(ppt,mNames{1})
layouts = 1×13 cell
{'Title Slide'} {'Title and Vertical Text'} {'Vertical Title and Text'} {'Title and Table'} {'Title and Picture'} {'Title and Content'} {'Section Header'} {'Two Content'} {'Comparison'} {'Title Only'} {'Blank'} {'Content with Caption'} {'Picture with Caption'}
Title Slide
レイアウトを使用してプレゼンテーションにタイトル スライドを追加し、スライドのタイトルを置き換えます。
slide = add(ppt,"Title Slide"); replace(slide, "Title","My Title");
プレゼンテーションを閉じて表示します。
close(ppt); rptview(ppt);
入力引数
presentation
— スライド マスター名を取得するプレゼンテーション
mlreportgen.ppt.Presentation
オブジェクト
スライド マスター名を取得するプレゼンテーション。mlreportgen.ppt.Presentation
オブジェクトとして指定します。
出力引数
mNames
— プレゼンテーションのスライド マスター
文字ベクトルの cell 配列
プレゼンテーションのスライド マスター。文字ベクトルの cell 配列として返されます。
バージョン履歴
R2015b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)