mlreportgen.dom.Border class
Package: 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 (default)cm
— centimetersin
— inchesmm
— millimeterspc
— picaspt
— 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.
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.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char
| string
Style
— Default style of border segments
character vector
For details, see the description of the
style
input argument for the
mlreportgen.dom.Border
constructor.
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.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char
| string
Width
— Width of border
character vector
Width of the border, specified as a character vector
in the form valueUnits
.
Units
is an abbreviation for
the units. Valid abbreviations are:
px
— pixels (default)cm
— centimetersin
— inchesmm
— millimeterspc
— picaspt
— points
BottomColor
— Bottom border segment color
character vector
Bottom border segment color, specified as a character vector.
BottomStyle
— Bottom border segment style
character vector
Bottom border segment style, specified as a character vector.
BottomWidth
— Bottom border segment width
character vector
Bottom border segment width, specified as a character vector.
TopColor
— Top border segment color
character vector
Top border segment color, specified as a character vector.
TopStyle
— Top border segment style
character vector
Top border segment style, specified as a character vector.
TopWidth
— Top border segment width
character vector
Top border segment width, specified as a character vector.
LeftColor
— Left border segment color
character vector
Left border segment color, specified as a character vector.
LeftStyle
— Left border segment style
character vector
Left border segment style, specified as a character vector.
LeftWidth
— Left border segment width
character vector
Left border segment width, specified as a character vector.
RightColor
— Right border segment color
character vector
Right border segment color, specified as a character vector.
RightStyle
— Right border segment style
character vector
Right border segment style, specified as a character vector.
RightWidth
— Right border segment width
character vector
Right border segment width, specified as a character vector.
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
Apri esempio
Si dispone di una versione modificata di questo esempio. Desideri aprire questo esempio con le tue modifiche?
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi 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)