Package: mlreportgen.dom
Superclasses:
Border properties of object
Specifies the border properties of an object.
creates
an unspecified border.borderObj
= Border()
creates
a border having the specified style. borderObj
= Border(style
)
creates
a border having the specified style and color. borderObj
= Border(style
,color
)
creates
a border having the specified style, color, and width. borderObj
= Border(style
,color
,width
)
style
— Default style of border segmentsUse 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 borderYou can specify:
The name of a color. The name must be a CSS color name. See https://www.crockford.com/wrrrld/color.html.
A hexadecimal RGB (truecolor) value as #RRGGBB
.
For example, #0000ff
is a shade of blue.
width
— Width of borderWidth 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
— centimeters
in
— inches
mm
— millimeters
pc
— picas
pt
— points
borderObj
— Table bordermlreportgen.dom.Border
objectTable border, represented by an mlreportgen.dom.Border
object.
Color
— Default color of border segmentsYou can specify:
The name of a color. The name must be a CSS color name. See https://www.crockford.com/wrrrld/color.html.
A hexadecimal RGB (truecolor) value as #RRGGBB
.
For example, #0000ff
is a shade of blue.
Id
— ID for this document elementID 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.
Style
— Default style of border segmentsFor details, see the description of the style
input
argument for the mlreportgen.dom.Border
constructor.
Tag
— Tag for this document elementTag 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.
Width
— Width of borderWidth 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
— centimeters
in
— inches
mm
— millimeters
pc
— picas
pt
— points
BottomColor
— Bottom border segment colorBottom border segment color, specified as a character vector.
BottomStyle
— Bottom border segment styleBottom border segment style, specified as a character vector.
BottomWidth
— Bottom border segment widthBottom border segment width, specified as a character vector.
TopColor
— Top border segment colorTop border segment color, specified as a character vector.
TopStyle
— Top border segment styleTop border segment style, specified as a character vector.
TopWidth
— Top border segment widthTop border segment width, specified as a character vector.
LeftColor
— Left border segment colorLeft border segment color, specified as a character vector.
LeftStyle
— Left border segment styleLeft border segment style, specified as a character vector.
LeftWidth
— Left border segment widthLeft border segment width, specified as a character vector.
RightColor
— Right border segment colorRight border segment color, specified as a character vector.
RightStyle
— Right border segment styleRight border segment style, specified as a character vector.
RightWidth
— Right border segment widthRight border segment width, specified as a character vector.
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);
You have a modified version of this example. Do you want to open this example with your edits?