mlreportgen.dom.Border Class
Namespace: mlreportgen.dom
Border properties of object
Description
Specifies the border properties of an object.
The mlreportgen.dom.Border
class is a handle
class.
Creation
Description
creates an unspecified border.borderObj
= Border
creates a border having the specified style.borderObj
= Border(style
)
Input Arguments
style
— Default style of border segments
character vector
Use one of the values in the table.
Border Value | Description | Supported Output Types |
---|---|---|
| Dashed line | All output types |
| Line with alternating diagonal dashes and dot | Word |
| Dashed line with a small gap between dashes | Word |
| Dotted line | All output types |
| Line with alternating dots and dashes | Word |
| Line with alternating double dots and a dash | Word |
| Double line | All output types |
| Double wavy line | Word |
| 3-D effect grooved line | HTML and PDF |
| No line The
| HTML and PDF |
| 3-D effect line | All output types |
| No line The
| All output types |
| 3-D effect line | All output types |
| 3-D effect ridged line | HTML and PDF |
| Single line | Word |
| Single line | HTML and PDF |
| Thick line | Word |
| Dashed line with alternating thick and thin dashes with a large gap | Word |
| Dashed line with alternating thick and thin dashes with a medium gap | Word |
| Dashed line with alternating thick and thin dashes with a small gap | Word |
| Dashed line with alternating thin and thick dashes with a medium gap | Word |
| Dashed line with alternating thin and thick dashes, with a medium gap | Word |
| Dashed line with alternating thin and thick dashes with a small gap | Word |
| Dashed line with alternating thin and thick dashes with a large gap | Word |
| Dashed line with alternating thin and thick dashes with a medium gap | Word |
| Dashed line with alternating thin and thick dashes with a small gap | Word |
| Embossed effect line | Word |
| Engraved effect line | Word |
| Triple line | Word |
| Wavy line | Word |
color
— Color of border
character vector
You can specify:
The name of a color. The name must be a CSS color name. See https://www.w3.org/wiki/CSS/Properties/color/keywords.
A hexadecimal RGB (truecolor) value as
#RRGGBB
. For example,#0000ff
is a shade of blue.
width
— Width of border
character vector
Width of the border, specified as a character
vector, in the format
valueUnits
.
Units
is an abbreviation for
the units. Valid abbreviations are:
"px"
— pixels"cm"
— centimeters"in"
— inches"mm"
— millimeters"pc"
— picas"pt"
— points
Properties
Color
— Default color of border segments
character vector
You can specify:
The name of a color. The name must be a CSS color name. See https://www.w3.org/wiki/CSS/Properties/color/keywords.
A hexadecimal RGB (truecolor) value as
#RRGGBB
. For example,#0000ff
is a shade of blue.
Style
— Default style of border segments
character vector
For details, see the description of the
style
input argument for the
mlreportgen.dom.Border
constructor.
Width
— Width of border
character vector
Width of the border, specified as a character vector or string scalar in the form valueUnits
.
Units
is an abbreviation for
the units. Valid abbreviations are:
"px"
— pixels"cm"
— centimeters"in"
— inches"mm"
— millimeters"pc"
— picas"pt"
— points
BottomColor
— Bottom border segment color
character vector
Bottom border segment color, specified as a character vector or string scalar.
Data Types: char
| string
BottomStyle
— Bottom border segment style
character vector
Bottom border segment style, specified as a character vector or string scalar.
Data Types: char
| string
BottomWidth
— Bottom border segment width
character vector
Bottom border segment width, specified as a character vector or string scalar.
Data Types: char
| string
TopColor
— Top border segment color
character vector
Top border segment color, specified as a character vector or string scalar.
Data Types: char
| string
TopStyle
— Top border segment style
character vector
Top border segment style, specified as a character vector or string scalar.
Data Types: char
| string
TopWidth
— Top border segment width
character vector
Top border segment width, specified as a character vector or string scalar.
Data Types: char
| string
LeftColor
— Left border segment color
character vector
Left border segment color, specified as a character vector or string scalar.
Data Types: char
| string
LeftStyle
— Left border segment style
character vector
Left border segment style, specified as a character vector or string scalar.
Data Types: char
| string
LeftWidth
— Left border segment width
character vector
Left border segment width, specified as a character vector or string scalar.
Data Types: char
| string
RightColor
— Right border segment color
character vector
Right border segment color, specified as a character vector or string scalar.
Data Types: char
| string
RightStyle
— Right border segment style
character vector
Right border segment style, specified as a character vector or string scalar.
Data Types: char
| string
RightWidth
— Right border segment width
character vector
Right border segment width, specified as a character vector or string scalar.
Data Types: char
| string
Id
— Object identifier for mlreportgen.dom.Border
object
character vector | string scalar
Object identifier for the mlreportgen.dom.Border
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
Tag
— Tag for mlreportgen.dom.Border
object
character vector | string scalar
Tag for the mlreportgen.dom.Border
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
Examples
Format Table Borders
import mlreportgen.dom.*; doctype = "html"; d = Document("test",doctype); t = Table(magic(5)); t.Style = {Border("inset","crimson","6pt"),Width("50%")}; t.TableEntriesInnerMargin = "6pt"; append(d,t); close(d); rptview("test",doctype);
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 (한국어)