mxcad_2d API 文档 / 2d / ITableStyle
Interface: ITableStyle
2d.ITableStyle
表格样式接口
Table of contents
Properties
- backgroundColor
- borderColor
- borderLineType
- borderLineWeight
- name
- textAlignment
- textColor
- textHeight
- textStyle
- textVerticalAlignment
Properties
backgroundColor
• Optional backgroundColor: null | number
borderColor
• borderColor: number
borderLineType
• Optional borderLineType: string
边框线型 表格边框线型名称,如"Continuous", "Dashed", "Dotted"等
borderLineWeight
• Optional borderLineWeight: number
边框线宽 表格边框线宽,单位为毫米
name
• name: string
textAlignment
• Optional textAlignment: "center" | "left" | "right"
文本对齐方式
- 'left': 左对齐
- 'center': 居中对齐
- 'right': 右对齐
textColor
• textColor: number
textHeight
• textHeight: number
textStyle
• Optional textStyle: string
文本样式名称 指定要使用的文字样式名称
textVerticalAlignment
• Optional textVerticalAlignment: "top" | "bottom" | "middle"
文本垂直对齐方式
- 'top': 顶部对齐
- 'middle': 垂直居中
- 'bottom': 底部对齐
