mlreportgen.ppt.VAlign Class
Namespace: mlreportgen.ppt
Vertical alignment of table entry content
Description
Vertical alignment of table entry content.
The mlreportgen.ppt.VAlign
class is a handle
class.
Creation
Description
Input Arguments
value
— Vertical alignment for table entry content
'top'
(default) | 'bottom'
| 'middle'
| 'topCentered'
| 'middleCentered'
| 'bottomCentered'
Vertical alignment for table entry content, specified as one of the values in the table.
Value | Description |
---|---|
| Vertically aligned to the top |
| Vertically aligned to the bottom of the table entry |
| Vertically aligned to the middle of the table entry |
| Vertically aligned to the top and horizontally aligned to the center of the table entry |
| Vertically aligned to the bottom and horizontally aligned to the center of the table entry |
| Vertically aligned to the middle and horizontally aligned to the center of the table entry |
Properties
Id
— Object identifier for mlreportgen.ppt.VAlign
object
character vector | string scalar
Object identifier for the mlreportgen.ppt.VAlign
object, specified as a
character vector or string scalar. The PPT API generates a session-unique identifier
when it creates the document element object. You can specify your own value for
Id
.
Attributes:
NonCopyable | true |
Data Types: char
| string
Tag
— Tag for mlreportgen.ppt.VAlign
object
character vector | string scalar
Tag for the mlreportgen.ppt.VAlign
object, specified as a character vector or
string scalar. The DOM API generates a session-unique tag as part of the creation of
this object. The generated tag has the form
CLASS:ID
, where
CLASS
is the object class and
ID
is the value of the
Id
property of the object. Specify your own tag value to help
you identify where to look when an issue occurs during document generation.
Attributes:
NonCopyable | true |
Data Types: char
| string
Value
— Vertical alignment of table entry content
'top'
(default) | 'bottom'
| 'middle'
| 'topCentered'
| 'middleCentered'
| 'bottomCentered'
Vertical alignment of table entry content, specified as a character vector or string scalar.
Value | Description |
---|---|
| Vertically aligned to the top |
| Vertically aligned to the bottom of the table entry |
| Vertically aligned to the middle of the table entry |
| Vertically aligned to the top and horizontally aligned to the center of the table entry |
| Vertically aligned to the bottom and horizontally aligned to the center of the table entry |
| Vertically aligned to the middle and horizontally aligned to the center of the table entry |
Examples
Add a Table
Create a presentation.
import mlreportgen.ppt.* ppt = Presentation('myVAlign.pptx'); open(ppt); slide1 = add(ppt,'Title and Content');
Create a table using a cell array. Set the vertical alignment for each entry.
table1 = Table(); row1 = TableRow(); p1 = Paragraph('top'); r1e1 = TableEntry(); r1e1.Style = {VAlign('top'),FontSize('.5in')}; append(r1e1,p1); append(row1,r1e1); p2 = Paragraph('middle'); r1e2 = TableEntry(); r1e2.Style = {VAlign('middle')}; append(r1e2,p2); append(row1,r1e2); row2 = TableRow(); p3 = Paragraph('bottom'); r2e1 = TableEntry(); r2e1.Style = {VAlign('bottom')}; append(r2e1,p3); append(row2,r2e1); p4 = Paragraph('middle centered'); r2e2 = TableEntry(); r2e2.Style = {VAlign('middleCentered'),FontSize('.5in')}; append(r2e2,p4); append(row2,r2e2); append(table1,row1); append(table1,row2);
Add the table to the slide, generate the presentation, and open the
myVAlign
presentation.
replace(slide1,'Content',table1);
close(ppt);
rptview(ppt);
Version History
Introduced in R2015b
MATLAB Command
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)