add
クラス: mlreportgen.ppt.TextBox
名前空間: mlreportgen.ppt
テキスト ボックスへの段落の追加
説明
例
テキスト ボックスへのテキストの追加
1 つのスライドをもつプレゼンテーションを作成します。
import mlreportgen.ppt.* ppt = Presentation('myTextBoxAddPresentation.pptx'); slide = add(ppt,'Blank');
空白のスライドにテキスト ボックスを追加します。
tb = TextBox(); tb.X = '1in'; tb.Y = '1in'; tb.Width = '4 in'; tb.Height = '2in'; add(slide,tb);
テキスト ボックスにテキストを追加します。
para = add(tb,'This is the content');
para.Bold = true;
プレゼンテーションを閉じて表示します。
close(ppt); rptview(ppt);
入力引数
textBox
— テキストを追加するテキスト ボックス
mlreportgen.ppt.TextBox
オブジェクト
テキストを追加するテキスト ボックス。mlreportgen.ppt.TextBox
オブジェクトとして指定します。
content
— テキスト ボックスに追加するテキスト
文字ベクトル | string スカラー | mlreportgen.ppt.Paragraph
テキスト ボックスに追加するテキスト。文字ベクトル、string スカラー、または mlreportgen.ppt.Paragraph
オブジェクトとして指定します。
contents
— 追加する複数の段落
string 配列 | cell 配列
追加する複数の段落。string 配列として指定するか、文字ベクトルまたは mlreportgen.ppt.Paragraph
オブジェクトを含む cell 配列として指定するか、文字ベクトル、string スカラー、string 配列、または mlreportgen.ppt.Paragraph
オブジェクトの組み合わせを含む cell 配列として指定します。cell 配列の場合、内側の cell 配列または string 配列のコンテンツは、外側の cell 配列のコンテンツからインデントされます。
出力引数
paraObj
— 段落
mlreportgen.ppt.Paragraph
オブジェクト
段落。mlreportgen.ppt.Paragraph
オブジェクトとして返されます。
バージョン履歴
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)