Main Content

row

Class: mlreportgen.dom.Table
Package: mlreportgen.dom

Access table row

Description

example

tableRowOut = row(tableObj,row) returns the table row at the specified row number.

Examples

expand all

Color the second row of a table.

import mlreportgen.dom.*;
myReport = Document('myDoc','html');

t = Table(magic(5));
te = row(t,2);
te.Style = {Color('red')};
append(myReport,t);

close(myReport);
rptview(myReport.OutputPath);

Input Arguments

expand all

Table containing the entry, specified as an mlreportgen.dom.Table object.

Index number of the row (top row is row 1).

Data Types: double

Output Arguments

expand all

Table row object, represented by an mlreportgen.dom.TableRow object.

Introduced in R2014b