mlreportgen.dom.RowSep Class
Namespace: mlreportgen.dom
Draw lines between table rows
Description
Draw lines (separators) between table rows.
The mlreportgen.dom.RowSep
class is a handle
class.
Creation
Description
creates
unspecified row separators.rowSepObj
= RowSep
creates a row separator of the specified style. rowSepObj
= RowSep(style
)
Input Arguments
style
— Line style of table row separator
character vector
Line style of the table row separator, specified as one of these values.
Value | Supported in Word | Supported in HTML and PDF |
---|---|---|
'dashed' | Yes | Yes |
'dashdotstroked' | Yes | No |
'dashsmallgap' | Yes | No |
'dotted' | Yes | Yes |
'dotdash' | Yes | No |
'dotdotdash' | Yes | No |
'double' | Yes | Yes |
'doublewave' | Yes | No |
'inset' | Yes | Yes |
'none' | Yes | Yes |
'outset' | Yes | Yes |
'single' | Yes | No |
'solid' | No | Yes |
'thick' | Yes | No |
'thickthinlargegap' | Yes | No |
'thickthinmediumgap' | Yes | No |
'thickthinsmallgap' | Yes | No |
'thinthicklargegap' | Yes | No |
'thinthickmediumgap' | Yes | No |
'thinthicksmallgap' | Yes | No |
'thinthickthinlargegap' | Yes | No |
'thinthickthinmediumgap' | Yes | No |
'thinthickthinsmallgap' | Yes | No |
'threedemboss' | Yes | No |
'threedengrave' | Yes | No |
'triple' | Yes | No |
'wave' | Yes | No |
color
— Color of table row separator
character vector
Color of the table row separator, specified as a color, such as
'red'
or a hexadecimal RGB value, such as
'#0000ff'
.
width
— Width of table row separator
character vector
Width of table row separator 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
Properties
Color
— Document element object color
[]
(default) | character vector | string scalar
Document element object color that consists of a CSS color name (see https://www.w3.org/wiki/CSS/Properties/color/keywords) or a hexadecimal RGB (truecolor) value in the form
#RRGGBB
, specified as a character vector or
string scalar.
Note
Setting the Color
property adds a corresponding
mlreportgen.dom.Color
format object to the
Style
property. Setting the
Color
property to an empty value removes
the object.
Example: "blue"
Example: "#0000ff"
Attributes:
NonCopyable | true |
Data Types: char
| string
Width
— Table row separator width
character vector
Width of the table row separator 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
Style
— Line style of table row separator
character vector
Line style for the row separator. See the description of the
style
input argument for a list of possible values.
Tag
— Tag for mlreportgen.dom.RowSep
object
character vector | string scalar
Tag for the mlreportgen.dom.RowSep
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.RowSep
object
character vector | string scalar
Object identifier for the mlreportgen.dom.RowSep
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
Examples
Use Table Row Separators
Define the row separator as part of the Style
property definition for the table.
import mlreportgen.dom.*; doctype = 'html'; d = Document('test',doctype); t = Table(magic(5)); t.Style = {Border('inset','crimson','6pt'), ... ColSep('double','DarkGreen','3pt'), ... RowSep('double','Gold','3pt'), ... Width('50%')}; t.TableEntriesInnerMargin = '6pt'; t.TableEntriesHAlign = 'center'; t.TableEntriesVAlign = 'middle'; append(d,t); close(d); rptview(d.OutputPath);
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 (한국어)