Main Content

row

Class: mlreportgen.ppt.Table
Namespace: mlreportgen.ppt

Access table row

Description

tableRowOut = row(table,rowNumber) returns the row specified by the rowNumber.

example

Examples

expand all

Color the third row in the table.

import mlreportgen.ppt.*;

ppt = Presentation('myTableRowMethod.pptx');
open(ppt);
slide1 = add(ppt,'Title and Content');
t = Table(magic(5));
row3 = row(t,3);
row3.BackgroundColor = 'red';

replace(slide1,'Content',t);

close(ppt);
rptview(ppt);

Input Arguments

expand all

Table containing the row, specified as an mlreportgen.ppt.Table object.

Table row, specified as a double. The double is an index number indicating the position of the row. The number of the top row is 1.

Data Types: double

Output Arguments

expand all

Table row object, returned as an mlreportgen.ppt.TableRow object

Version History

Introduced in R2014b