mlreportgen.dom.TableBody Class
Namespace: mlreportgen.dom
Body of formal table
Description
Specifies the body of a formal table
The mlreportgen.dom.TableBody
class is a handle
class.
Properties
ColSep
— Style of line separating columns
"none"
| "solid"
| "dot"
| ...
Style of the line that separates the columns of a table or table
section, specified as a string scalar or a character vector. See the
Border
property for a table of valid entries.
Attributes:
NonCopyable | true |
Data Types: char
| string
ColSepColor
— Color of line separating columns
[]
(default) | character vector | string scalar
Color of lines separating columns specified as a character vector or string scalar that consists of a CSS color name or a hexadecimal RGB value.
For a list of CSS color names, see https://www.w3.org/wiki/CSS/Properties/color/keywords.
To specify a hexadecimal RGB format, use
#
as the first character and two-digit hexadecimal numbers for the red, green, and blue values. For example,"#0000ff"
specifies blue.
Example: "blue"
Example: "#0000ff"
Attributes:
NonCopyable | true |
Data Types: char
| string
ColSepWidth
— Width of line separating table columns
[]
(default) | character vector | string scalar
Width of the line separating table columns, specified as a character vector or string
scalar that consists of a number followed by an abbreviation of a unit of measurement.
Valid Units
abbreviations are:
"px"
— pixels"cm"
— centimeters"in"
— inches"mm"
— millimeters"pc"
— picas"pt"
— points
Example: "10pt"
Attributes:
NonCopyable | true |
Data Types: char
| string
RowSep
— Style of lines separating rows
[]
(default) | character vector | string scalar
Style of the lines that separate the rows of the table, specified as a character vector or string scalar.
See the description of the Border
property for a description of the
possible values.
Attributes:
NonCopyable | true |
Data Types: char
| string
RowSepColor
— Color of lines separating table rows
[]
(default) | character vector | string scalar
Color of lines separating table rows, specified as a character vector or string scalar that consists of a CSS color name or a hexadecimal RGB value.
For a list of CSS color names, see https://www.w3.org/wiki/CSS/Properties/color/keywords.
To specify a hexadecimal RGB format, use
#
as the first character and two-digit hexadecimal numbers for the red, green, and blue values. For example,"#0000ff"
specifies blue.
Example: "blue"
Example: "#0000ff"
Attributes:
NonCopyable | true |
Data Types: char
| string
Style
— Format specification
{}
(default) | array of DOM format objects
Format specification for this document element object, specified as an array of DOM
format objects. The formats specified by this property override corresponding formats
specified by the StyleName
property of this element. Formats that
do not apply to this document element object are ignored.
Attributes:
NonCopyable | true |
StyleName
— Name of stylesheet-defined style
[]
(default) | character vector | string scalar
Style name, specified as a character vector or string scalar. The style name is the
name of a style specified in the style sheet of the document or document part to which
this element is appended. The specified style defines the appearance of this element in
the output document unless overridden by the formats specified by the
Style
property of this element. To learn more about using style
sheets, see Use Style Sheet Styles.
Note
Microsoft® Word output ignores the style name.
Attributes:
NonCopyable | true |
Data Types: char
| string
TableEntriesHAlign
— Horizontal alignment of table entries
"center"
(default) | "left"
| "right"
Horizontal alignment of table entries, specified as "center"
,
"left"
, or "right"
.
Attributes:
NonCopyable | true |
Data Types: char
| string
TableEntriesVAlign
— Vertical alignment of table cell content
"top"
| "middle"
| "bottom"
Vertical alignment of table cell content, specified as one of these values:
"top"
"middle"
"bottom"
Attributes:
NonCopyable | true |
Data Types: char
| string
TableEntriesInnerMargin
— Inner margin for table entries
[]
(default) | character vector | string scalar
The inner margin is the margin between table cell content and the cell borders in the
form valueUnits
where Units
is an abbreviation for
the units. Valid abbreviations are:
"px"
— pixels"cm"
— centimeters"in"
— inches"mm"
— millimeters"pc"
— picas"pt"
— points
Attributes:
NonCopyable | true |
Data Types: char
| string
TableEntriesStyle
— Style to use for table entries
[]
(default) | cell array of format objects
Style to use for the table entries, specified as a cell array of format objects.
Note
The styles specified by this property apply to the content of
a table's entries and not to the entries themselves. For
example, you can use this property to define the font size
of a table's entries but not the type or color of the entry
borders. To specify the borders, you have to set the
Style
property of each
entry.
Note
Be careful not to inadvertently overwrite a previous setting
of this property. For example, setting this table's
TableEntriesHAlign
property
appends an HAlign
format object to this
property. To avoid overwriting this property, you should set
this property before setting other table properties that
append formats to this property.
Attributes:
NonCopyable | true |
Data Types: cell
Parent
— Parent of mlreportgen.dom.TableBody
object
document element object
Parent of mlreportgen.dom.TableBody
object, specified as a document element
object. A document element must have only one parent.
Attributes:
SetAccess | private |
NonCopyable | true |
Children
— Children of mlreportgen.dom.TableBody
object
array of document element objects
Children of mlreportgen.dom.TableBody
object, specified as an array of document
element objects. This property contains the document element objects appended using the
append
method.
Attributes:
SetAccess | private |
NonCopyable | true |
Tag
— Tag for mlreportgen.dom.TableBody
object
character vector | string scalar
Tag for the mlreportgen.dom.TableBody
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
Id
— Object identifier for mlreportgen.dom.TableBody
object
character vector | string scalar
Object identifier for the mlreportgen.dom.TableBody
object, specified as a
character vector or string scalar. The DOM 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
Methods
Version History
Introduced in R2014b
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 (한국어)