Main Content

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

borderObj = Border creates an unspecified border.

borderObj = Border(style) creates a border having the specified style.

borderObj = Border(style,color) creates a border having the specified style and color.

borderObj = Border(style,color,width) creates a border having the specified style, color, and width.

example

Input Arguments

expand all

Use one of the values in the table.

Border ValueDescriptionSupported Output Types

"dashed"

Dashed line

All output types

"dashdotstroked"

Line with alternating diagonal dashes and dot

Word

"dashsmallgap"

Dashed line with a small gap between dashes

Word

"dotted"

Dotted line

All output types

"dotdash"

Line with alternating dots and dashes

Word

"dotdotdash"

Line with alternating double dots and a dash

Word

"double"

Double line

All output types

"doublewave"

Double wavy line

Word

"groove"

3-D effect grooved line

HTML and PDF

"hidden"

No line

The "none" border type also produces no line. However, conflicting borders are handled differently for "hidden" types than for "none" types. The "hidden" border type takes precedence over a conflicting border type. A conflicting border type takes precedence over the "none" type.

HTML and PDF

"inset"

3-D effect line

All output types

"none"

No line

The "hidden" border type also produces no line. However, conflicting borders are handled differently for "hidden" types than for "none" types. The "hidden" border type takes precedence over a conflicting border type. A conflicting border type takes precedence over the "none" type.

All output types

"outset"

3-D effect line

All output types

"ridge"

3-D effect ridged line

HTML and PDF

"single"

Single line

Word

"solid"

Single line

HTML and PDF

"thick"

Thick line

Word

"thickthinlargegap"

Dashed line with alternating thick and thin dashes with a large gap

Word

"thickthinmediumgap"

Dashed line with alternating thick and thin dashes with a medium gap

Word

"thickthinsmallgap"

Dashed line with alternating thick and thin dashes with a small gap

Word

"thinthicklargegap"

Dashed line with alternating thin and thick dashes with a medium gap

Word

"thinthickmediumgap"

Dashed line with alternating thin and thick dashes, with a medium gap

Word

"thinthicksmallgap"

Dashed line with alternating thin and thick dashes with a small gap

Word

"thinthickthinlargegap"

Dashed line with alternating thin and thick dashes with a large gap

Word

"thinthickthinmediumgap"

Dashed line with alternating thin and thick dashes with a medium gap

Word

"thinthickthinsmallgap"

Dashed line with alternating thin and thick dashes with a small gap

Word

"threedemboss"

Embossed effect line

Word

"threedengrave"

Engraved effect line

Word

"triple"

Triple line

Word

"wave"

Wavy line

Word

You can specify:

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

expand all

You can specify:

For details, see the description of the style input argument for the mlreportgen.dom.Border constructor.

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

Bottom border segment color, specified as a character vector or string scalar.

Data Types: char | string

Bottom border segment style, specified as a character vector or string scalar.

Data Types: char | string

Bottom border segment width, specified as a character vector or string scalar.

Data Types: char | string

Top border segment color, specified as a character vector or string scalar.

Data Types: char | string

Top border segment style, specified as a character vector or string scalar.

Data Types: char | string

Top border segment width, specified as a character vector or string scalar.

Data Types: char | string

Left border segment color, specified as a character vector or string scalar.

Data Types: char | string

Left border segment style, specified as a character vector or string scalar.

Data Types: char | string

Left border segment width, specified as a character vector or string scalar.

Data Types: char | string

Right border segment color, specified as a character vector or string scalar.

Data Types: char | string

Right border segment style, specified as a character vector or string scalar.

Data Types: char | string

Right border segment width, specified as a character vector or string scalar.

Data Types: char | string

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 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

collapse all

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