mlreportgen.dom.Border Class
Namespace: mlreportgen.dom
Table border properties
Description
Use an object of the mlreportgen.dom.Border class to specify
table borders.
The mlreportgen.dom.Border class is a handle class.
Creation
Description
creates a border with empty properties.borderObj = mlreportgen.dom.Border
Input Arguments
Type of border to draw, specified as one of the values in the table. This argument sets the Style property.
| Border Style | Description | Supported in Microsoft® Word | Supported in HTML and PDF |
|---|---|---|---|
"dashed" | Dashed line | yes | yes |
"dashdotstroked" | Line with alternating diagonal dashes and dot | yes | yes |
"dashsmallgap" | Dashed line with a small gap between dashes | yes | yes |
"dotted" | Dotted line | yes | yes |
"dotdash" | Line with alternating dots and dashes | yes | no |
"dotdotdash" | Line with alternating double dots and a dash | yes | no |
"double" | Double line | yes | yes |
"doublewave" | Double wavy line | yes | no |
"groove" | 3-D effect grooved line | no | yes |
"hidden" | No line When there is a conflicting border style, the
| no | yes |
"inset" | 3-D effect line | no | yes |
"none" | No line When there is a conflicting border style, the
conflicting border style takes precedence over | yes | yes |
"outset" | 3-D effect line | yes | yes |
"ridge" | 3-D effect ridged line | no | yes |
"single" | Single line | yes | yes |
"solid" | Single line | no | yes |
"thick" | Thick line | yes | no |
"thickthinlargegap" | Dashed line with alternating thick and thin dashes with a large gap | yes | no |
"thickthinmediumgap" | Dashed line with alternating thick and thin dashes with a medium gap | yes | no |
"thickthinsmallgap" | Dashed line with alternating thick and thin dashes with a small gap | yes | no |
"thinthicklargegap" | Dashed line with alternating thin and thick dashes with a large gap | yes | no |
"thinthickmediumgap" | Dashed line with alternating thin and thick dashes with a medium gap | yes | no |
"thinthicksmallgap" | Dashed line with alternating thin and thick dashes with a small gap | yes | no |
"thinthickthinlargegap" | Dashed line with alternating thin and thick dashes with a large gap | yes | no |
"thinthickthinmediumgap" | Dashed line with alternating thin and thick dashes with a medium gap | yes | no |
"thinthickthinsmallgap" | Dashed line with alternating thin and thick dashes with a small gap | yes | no |
"threedemboss" | Embossed effect line | yes | no |
"threedengrave" | Engraved effect line | yes | no |
"triple" | Triple line | yes | no |
"wave" | Wavy line | yes | no |
Note
For Microsoft Word reports, when you assign an mlreportgen.dom.Border object to
the Style property of an
mlreportgen.dom.TableHeaderEntry,
mlreportgen.dom.TableEntry, or
mlreportgen.dom.HorizontalRule object, the reporter does not support
"inset" or "outset" styles for this
property.
Color of the border, specified as a character vector or string scalar that contains a CSS color name or hexadecimal RGB value.
To use the name of a color, specify a CSS color name. For a list of CSS color names, seehttps://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"
This argument sets the Color property.
Width of the border, specified as character vector or string scalar that contains a number
followed by an abbreviation for a unit of
measurement. For example, "3pt"
specifies three points. Valid abbreviations
are:
"px"— Pixels"cm"— Centimeters"in"— Inches"mm"— Millimeters"pc"— Picas"pt"— Points
Example: "3pt" specifies three points.
This argument sets the Width property.
Note
Microsoft Word has additional border width limitations:
Microsoft Word limits the width of borders to the range of
0.25ptto6pt. Out of range width assignments trigger a warning or error message depending on your chosen border style.Along with the range limit, these border styles have additional limitations:
"dashdotstroked":3pt"doublewave":0.75pt"thinthickthinmediumgap":0.25–4.5pt"thinthickthinsmallgap":1.5–6pt"threedemboss":0.75–6pt"threedengrave":0.75–6pt"triple":0.5–3pt"wave":0.75–1.5pt
Properties
Default style of the border segments, specified as one
of the values in the table in the style input argument.
Example: "3pt" specifies three points.
Attributes:
NonCopyable | true |
Data Types: char | string
Color of the border segments, specified as a character vector or string scalar that contains a CSS color name or hexadecimal RGB value.
To use the name of a color, specify a CSS color name. For a list of CSS color names, seehttps://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:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char | string
Width of the border, specified as character vector or string scalar that contains a number
followed by an abbreviation for a unit of measurement. For example,
"3pt" specifies three points. Valid abbreviations are:
"px"— Pixels"cm"— Centimeters"in"— Inches"mm"— Millimeters"pc"— Picas"pt"— Points
Example: "3pt" specifies three points.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: string | char
Top border segment style, specified as one of the
values in the table in the style input argument.
Attributes:
NonCopyable | true |
Data Types: string | char
Color of the top border segment, specified as a character vector or string scalar that contains a CSS color name or hexadecimal RGB value.
To use the name of a color, specify a CSS color name. For a list of CSS color names, seehttps://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:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char | string
Width of the top border segment, specified as a character vector or string scalar that
contains a number followed by an abbreviation for a unit of measurement. For example,
"3pt" specifies three points. Valid abbreviations are:
"px"— Pixels"cm"— Centimeters"in"— Inches"mm"— Millimeters"pc"— Picas"pt"— Points
Example: "3pt" specifies three points.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char | string
Left border segment style, specified as one of the
values in the table in the style input argument.
Attributes:
NonCopyable | true |
Data Types: string | char
Color of the left border segment, specified as a character vector or string scalar that contains a CSS color name or hexadecimal RGB value.
To use the name of a color, specify a CSS color name. For a list of CSS color names, seehttps://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:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char | string
Width of the left border segment, specified as a character vector or string scalar
that contains a number followed by an abbreviation for a unit of measurement. For
example, "3pt" specifies three points. Valid abbreviations
are:
"px"— Pixels"cm"— Centimeters"in"— Inches"mm"— Millimeters"pc"— Picas"pt"— Points
Example: "3pt" specifies three points.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char | string
Bottom border segment style, specified as one of the
values in the table in the style input argument.
Attributes:
NonCopyable | true |
Data Types: string | char
Color of the bottom border segment, specified as a character vector or string scalar that contains a CSS color name or hexadecimal RGB value.
To use the name of a color, specify a CSS color name. For a list of CSS color names, seehttps://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:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char | string
Width of the bottom border segment, specified as a character vector or string scalar
that contains a number followed by an abbreviation for a unit of measurement. For
example, "3pt" specifies three points. Valid abbreviations
are:
"px"— Pixels"cm"— Centimeters"in"— Inches"mm"— Millimeters"pc"— Picas"pt"— Points
Example: "3pt" specifies three points.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char | string
Right border segment style, specified as one of the
values in the table in the style input argument.
Attributes:
NonCopyable | true |
Data Types: string | char
Color of the right border segment, specified as a character vector or string scalar that contains a CSS color name or hexadecimal RGB value.
To use the name of a color, specify a CSS color name. For a list of CSS color names, seehttps://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:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char | string
Width of the right border segment, specified as a character vector or string scalar
that contains a number followed by an abbreviation for a unit of measurement. For
example, "3pt" specifies three points. Valid abbreviations
are:
"px"— Pixels"cm"— Centimeters"in"— Inches"mm"— Millimeters"pc"— Picas"pt"— Points
Example: "3pt" specifies three points.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char | string
Object identifier, specified as a character vector or string scalar. The DOM API generates a session-unique identifier when it creates the document element object.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char | string
Tag, 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. Use this value to help identify
where an issue occurs during document generation.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char | string
Examples
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.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.
Americhe
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- 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)