MATLAB ヘルプ センター
クラス: mlreportgen.ppt.Table 名前空間: mlreportgen.ppt
テーブルへの行の追加
rowObj = append(table,row)
rowObj = append(table,row) は、テーブルに行を追加します。
rowObj
table
row
例
すべて展開する
プレゼンテーションを作成します。
import mlreportgen.ppt.* ppt = Presentation("myTableEntryPresentation.pptx"); open(ppt); add(ppt,"Title and Content");
3 つの列をもつテーブルを作成します。
table1 = Table();
最初のテーブル行を作成します。
tr1 = TableRow(); tr1.Style = {Bold(true)};
最初の行の 3 つのテーブル エントリを作成します。
te1tr1 = TableEntry(); p = Paragraph("first entry"); p.FontColor = "red"; append(te1tr1,p); te2tr1 = TableEntry(); append(te2tr1,"second entry"); te3tr1 = TableEntry(); te3tr1.Style = {FontColor("green")}; append(te3tr1,"third entry");
最初の行にテーブル エントリを追加します。
append(tr1,te1tr1); append(tr1,te2tr1); append(tr1,te3tr1);
2 番目のテーブル行を作成します。
tr2 = TableRow();
2 番目の行の 3 つのテーブル エントリを作成します。
te1tr2 = TableEntry(); te1tr2.Style = {FontColor("red")}; p = Paragraph("first entry"); append(te1tr2,p); te2tr2 = TableEntry(); append(te2tr2,"second entry"); te3tr2 = TableEntry(); te3tr2.Style = {FontColor("green")}; append(te3tr2,"third entry");
2 番目の行にテーブル エントリを追加します。
append(tr2,te1tr2); append(tr2,te2tr2); append(tr2,te3tr2);
テーブル行をテーブルに追加します。
append(table1,tr1); append(table1,tr2);
mlreportgen.ppt.Presentation.find メソッドを使用して、Content プレースホルダーをもつスライドを検索します。この場合、2 つあります。
mlreportgen.ppt.Presentation.find
Content
contents = find(ppt,"Content");
2 番目のスライドのテーブルを table1 に置き換えます。
table1
replace(contents(1),table1);
プレゼンテーションを生成します。myTableEntryPresentation.pptx テンプレートを開きます。Windows® プラットフォームでは、このプレゼンテーションを MATLAB® で開くことができます。
myTableEntryPresentation.pptx
close(ppt); rptview(ppt);
mlreportgen.ppt.Table
行を追加するテーブル。mlreportgen.ppt.Table オブジェクトとして指定します。
mlreportgen.ppt.TableRow
テーブルに追加する行。mlreportgen.ppt.TableRow オブジェクトとして指定します。
mlreportgen.dom.TableRow
追加されたテーブル行。mlreportgen.dom.TableRow オブジェクトとして返されます。
R2015b で導入
mlreportgen.ppt.Table | mlreportgen.ppt.TableRow | mlreportgen.ppt.TableEntry
mlreportgen.ppt.TableEntry
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 のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ