MATLAB ヘルプ センター
クラス: mlreportgen.ppt.TextBox 名前空間: mlreportgen.ppt
テキスト ボックスへの段落の追加
paraObj = add(textBox,content)
add(textBox,contents)
paraObj = add(textBox,content) は、テキスト ボックスに段落を追加します。
paraObj
textBox
content
add(textBox,contents) は、テキスト ボックスに複数の段落を追加します。
contents
例
すべて展開する
1 つのスライドをもつプレゼンテーションを作成します。
import mlreportgen.ppt.* ppt = Presentation("myTextBoxAddPresentation.pptx"); slide = add(ppt,"Blank");
空白のスライドにテキスト ボックスを追加します。
tb = TextBox(); tb.X = "1in"; tb.Y = "1in"; tb.Width = "4in"; tb.Height = "2in"; add(slide,tb);
テキスト ボックスにテキストを追加します。
para = add(tb,"This is the content"); para.Bold = true;
プレゼンテーションを閉じて表示します。
close(ppt); rptview(ppt);
mlreportgen.ppt.TextBox
テキストを追加するテキスト ボックス。mlreportgen.ppt.TextBox オブジェクトとして指定します。
mlreportgen.ppt.Paragraph
テキスト ボックスに追加するテキスト。文字ベクトル、string スカラー、または mlreportgen.ppt.Paragraph オブジェクトとして指定します。
追加する複数の段落。string 配列として指定するか、文字ベクトルまたは mlreportgen.ppt.Paragraph オブジェクトを含む cell 配列として指定するか、文字ベクトル、string スカラー、string 配列、または mlreportgen.ppt.Paragraph オブジェクトの組み合わせを含む cell 配列として指定します。cell 配列の場合、内側の cell 配列または string 配列のコンテンツは、外側の cell 配列のコンテンツからインデントされます。
段落。mlreportgen.ppt.Paragraph オブジェクトとして返されます。
R2015b で導入
mlreportgen.ppt.TextBox | replace | mlreportgen.ppt.Paragraph
replace
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ