mlreportgen.chart.Border Class
Namespace: mlreportgen.chart
Description
Use an object of the mlreportgen.chart.Border class to define a border for a shape.
The mlreportgen.chart.Border class is a handle class.
Class Attributes
HandleCompatible | true |
ConstructOnLoad | true |
For information on class attributes, see Class Attributes.
Creation
Description
creates a borderObj = mlreportgen.chart.BorderBorder object that is black.
creates a borderObj = mlreportgen.chart.Border(color)Border object of the color specified by the
color argument.
Input Arguments
Color of the border, specified as a character vector or string scalar that contains a CSS color name, hexadecimal RGB value, or decimal RGB value.
| Format | Value |
|---|---|
| CSS color name | Specify a CSS color name. For a list of CSS color names, see https://www.w3.org/wiki/CSS/Properties/color/keywords. |
| Hexadecimal RGB value | Use the format "#RRGGBB". Use # as the first character
and two-digit hexadecimal numbers for the red, green, and blue values. You can
use uppercase or lowercase letters. |
| Decimal RGB color value | Use the format "rgb(r,g,b)", where r,
g, and b are comma-separated positive
integers that specify the red, green, and blue values, respectively. Each value
range must be between 0 and 255. |
This argument sets the Color property.
Example:
"red" specifies a red color using a CSS color name.
Example:
"#0000ff" specifies a blue color using a hexadecimal RGB value.
Example:
"rgb(128,0,128)" specifies a purple color using a decimal RGB color value.
Properties
Fill applied to the chart element object, specified as an object of these fill classes:
mlreportgen.chart.SolidFillmlreportgen.chart.GradientFill
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Width of the chart element object, specified as a character vector or string scalar that contains a number followed by an abbreviation for a unit of measurement. Valid abbreviations are:
"px"— Pixels"cm"— Centimeters"in"— Inches"mm"— Millimeters"pc"— Picas"pt"— Points
You can also specify pixels by omitting the unit. For example, "5"
specifies 5 pixels.
Example: "5in" specifies five inches
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: char | string
Line dash type, specified as an mlreportgen.chart.LineDashType
object of one of these enumerations:
| Line Dash | Description |
|---|---|
mlreportgen.chart.LineDashType.Solid | Solid line |
mlreportgen.chart.LineDashType.RoundDot | Dotted line with round dots |
mlreportgen.chart.LineDashType.SquareDot | Dotted line with square dots |
mlreportgen.chart.LineDashType.DashDot | Line with alternating dots and dashes |
mlreportgen.chart.LineDashType.LongDash | Dashed line |
mlreportgen.chart.LineDashType.LongDashDot | Line with alternating dots and dashes |
mlreportgen.chart.LineDashType.LongDashDotDot | Line with alternating double dots and a dash |
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Line cap type, specified as an mlreportgen.chart.LineCapType
object of one of these enumerations:
| Line Cap | Description |
|---|---|
mlreportgen.chart.LineCapType.Flat | Line ends exactly at the endpoint with a flat edge |
mlreportgen.chart.LineCapType.Round | Line midpoint ends exactly at the endpoint with a half round end that extends past the endpoint |
mlreportgen.chart.LineCapType.Square | Line midpoint ends exactly at the endpoint with a square end that extends past the endpoint |

Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Line join type, specified as an mlreportgen.chart.LineJoinType
object of one of these enumerations:
| Line Cap | Description |
|---|---|
mlreportgen.chart.LineJoinType.Bevel | Cuts off the corner of the line join with a straight line to form a flat edge |
mlreportgen.chart.LineJoinType.Rounded | Adds a circular arc between the lines to form a rounded corner |
mlreportgen.chart.LineJoinType.Miter | Extends the outer edge of the lines to connect at a single point to form a sharp corner |
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Line compound type, specified as an
mlreportgen.chart.LineCompoundType object of one of these
enumerations:
| Line Compound | Description |
|---|---|
mlreportgen.chart.LineCompoundType.Simple | Single line |
mlreportgen.chart.LineCompoundType.Double | Double line |
mlreportgen.chart.LineCompoundType.ThinThick | Thin line, then thick line |
mlreportgen.chart.LineCompoundType.ThickThin | Thick line, then thin line |
mlreportgen.chart.LineCompoundType.Triple | Triple line |
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Version History
Introduced in R2026b
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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- 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)