mlreportgen.dom.TextOrientation class
Package: mlreportgen.dom
Superclasses:
Orientation of text in a table entry
Description
Specifies the orientation for text in a table entry.
Construction
causes text to flow from left to right and for the first column to be on the left side
of a table.textOrientationObj
= TextOrientation()
causes text in a table entry to display with the specified orientation.textOrientationObj
= TextOrientation(orientation
)
Input Arguments
orientation
— Text orientation
'horizontal'
| 'down'
| 'up'
Text orientation, specified as one of these values:
'horizontal'
— text is horizontal in the text entry'down'
— text is vertical, with the first character at the top'up'
— text is vertical, with the first character at the bottom
Output Arguments
textOrientationObj
— Text orientation
mlreportgen.dom.TextOrientation
object
Text orientation, returned as an
mlreportgen.dom.TextOrientation
object.
Properties
Id
— ID for this document element
character vector | string scalar
ID for this document element, specified as a character vector or string scalar. The DOM generates a session-unique ID when it creates the document element. You can specify your own ID.
Tag
— Tag for this document element
character vector | string scalar
Tag for this document element, specified as a character vector or string scalar.
The DOM 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. Specifying your own tag value can
help you to identify where an issue occurred during document generation.
Value
— Text orientation
'horizontal'
| 'down'
| 'up'
Text orientation, specified as one of these values:
'horizontal'
— text is horizontal in the text entry'down'
— text is vertical, with the first character at the top'up'
— text is vertical, with the first character at the bottom
Width
— Table entry rotated text width
string (default)
Table entry rotated text width, specified as a string. This property
applies only to PDF output. The width string is specified in the form
valueUnits
where Units
is an
abbreviation for the units. Valid abbreviations are:
px
— pixelscm
— centimetersin
— inchesmm
— millimeterspc
— picaspt
— points
Example: 10px
Data Types: string
Examples
Vertical Text in a Table Entry
import mlreportgen.dom.* d = Document('mydoc1','docx'); HeadStyle = {Bold,OuterMargin('0in')}; ch1 = Paragraph('Col1'); ch1.Style = HeadStyle; ch2 = Paragraph('Col2'); ch2.Style = HeadStyle; t = Table({ch1,ch2;'entry1','entry2'}); EntryStyle = {TextOrientation('down'),VAlign('middle')}; t.entry(1,1).Style = EntryStyle; t.entry(1,2).Style = EntryStyle; t.row(1).Style = {RowHeight('24pt','atleast')}; append(d,t); close(d); rptview(d.OutputPath);
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
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)