mlreportgen.dom.RowSep 类
命名空间: mlreportgen.dom
在表行之间绘制线条
创建对象
描述
输入参量
style
— 表行分隔线的线条样式
字符向量
表行分隔符的线条样式,指定为以下值之一。
值 | 支持 Word | 支持 HTML 和 PDF |
---|---|---|
'dashed' | 是 | 是 |
'dashdotstroked' | 是 | 否 |
'dashsmallgap' | 是 | 否 |
'dotted' | 是 | 是 |
'dotdash' | 是 | 否 |
'dotdotdash' | 是 | 否 |
'double' | 是 | 是 |
'doublewave' | 是 | 否 |
'inset' | 是 | 是 |
'none' | 是 | 是 |
'outset' | 是 | 是 |
'single' | 是 | 否 |
'solid' | 否 | 是 |
'thick' | 是 | 否 |
'thickthinlargegap' | 是 | 否 |
'thickthinmediumgap' | 是 | 否 |
'thickthinsmallgap' | 是 | 否 |
'thinthicklargegap' | 是 | 否 |
'thinthickmediumgap' | 是 | 否 |
'thinthicksmallgap' | 是 | 否 |
'thinthickthinlargegap' | 是 | 否 |
'thinthickthinmediumgap' | 是 | 否 |
'thinthickthinsmallgap' | 是 | 否 |
'threedemboss' | 是 | 否 |
'threedengrave' | 是 | 否 |
'triple' | 是 | 否 |
'wave' | 是 | 否 |
color
— 表行分隔符的颜色
字符向量
表行分隔符的颜色,指定为颜色,例如 'red'
或十六进制 RGB 值,例如 '#0000ff'
。
width
— 表行分隔符的宽度
字符向量
表行分隔符的宽度,形式为 valueUnits
,其中 Units
是单位的缩写。有效的缩写是:
"px"
- 像素"cm"
- 厘米"in"
- 英寸"mm"
- 毫米"pc"
- 派卡"pt"
- 磅
属性
Color
— 文档元素颜色
[]
(默认) | 字符向量 | 字符串标量
文档元素颜色由 CSS 颜色名称(请参阅 https://www.w3.org/wiki/CSS/Properties/color/keywords)或 #RRGGBB
形式的十六进制 RGB(真彩色)值组成,指定为字符向量或字符串标量。
注意
设置 Color
属性会将相应的 mlreportgen.dom.Color
格式对象添加到 Style
属性。将 Color
属性设置为空值将删除该对象。
示例: "blue"
示例: "#0000ff"
属性:
NonCopyable | true |
数据类型: char
| string
Width
— 表行分隔符宽度
字符向量
表行分隔符的宽度,形式为 valueUnits
,其中 Units
是单位的缩写。有效的缩写是:
"px"
- 像素"cm"
- 厘米"in"
- 英寸"mm"
- 毫米"pc"
- 派卡"pt"
- 磅
Style
— 表行分隔线的线条样式
字符向量
行分隔符的线条样式。请参阅 style
输入参量的描述,了解可能的值列表。
Tag
— mlreportgen.dom.RowSep
对象的标签
字符向量 | 字符串标量
mlreportgen.dom.RowSep
对象的标签,指定为字符向量或字符串标量。DOM API 在创建此对象的过程中生成一个会话唯一标签。生成的标签形式为 CLASS:ID
,其中 CLASS
是对象类,ID
是对象的 Id
属性的值。指定您自己的标签值,以帮助您确定在文档生成过程中出现问题时要查找的位置。
属性:
NonCopyable | true |
数据类型: char
| string
Id
— mlreportgen.dom.RowSep
对象的标识符
字符向量 | 字符串标量
mlreportgen.dom.RowSep
对象的对象标识符,指定为字符向量或字符串标量。DOM API 在创建文档元素对象时会生成一个会话唯一标识符。您可以为 Id
指定自己的值。
属性:
NonCopyable | true |
数据类型: char
| string
示例
使用表行分隔符
将行分隔符定义为表的 Style
属性定义的一部分。
import mlreportgen.dom.*; doctype = 'html'; d = Document('test',doctype); t = Table(magic(5)); t.Style = {Border('inset','crimson','6pt'), ... ColSep('double','DarkGreen','3pt'), ... RowSep('double','Gold','3pt'), ... Width('50%')}; t.TableEntriesInnerMargin = '6pt'; t.TableEntriesHAlign = 'center'; t.TableEntriesVAlign = 'middle'; append(d,t); close(d); rptview(d.OutputPath);
版本历史记录
在 R2014b 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 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)