This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

mlreportgen.ppt.Table.row

Package: mlreportgen.ppt

Access table row

Syntax

tableRowOut = row(table,rowNumber)

Description

example

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

Examples

collapse all

Color the third row in the table.

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

replace(slide1,'Content',t);

close(slides);
if ispc
winopen(slides.OutputPath);
end

Input Arguments

collapse 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

collapse all

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

Introduced in R2014b