# Class: DbTable

default.DbTable

DbBlockReference 块参照实体.

# Hierarchy

# Table of contents

# Constructors

# Properties

# Constructors

# constructor

+ new DbTable(prop?: IDbTable): DbTable

构造函数

# Parameters
Name Type Default value
prop IDbTable {}

Returns: DbTable

Overrides: DbBlockReference

# Properties

# alignment

Optional alignment: kTopLeft | kTopCenter | kTopRight | kMiddleLeft | kMiddleCenter | kMiddleRight | kBottomLeft | kBottomCenter | kBottomRight

单元格对齐方式(所有单元格).


# alpha

Optional alpha: number

透明度. [0-255][0完全透明,255完全不透明]

Inherited from: DbBlockReference.alpha


# attribute

Optional attribute: Record<string, string | number | DbText>

属性字段值

Inherited from: DbBlockReference.attribute


# backgroundColor

Optional backgroundColor: number

背景颜色(所有单元格).


# blockname

Optional blockname: string

块名称.

Inherited from: DbBlockReference.blockname


# cloneFromDb

Optional cloneFromDb: string

克隆的实体ID来源的图形,如为空,则取DbDocument中from的图形。也可以指定另外的图形

Inherited from: DbBlockReference.cloneFromDb


# cloneObjectId

Optional cloneObjectId: string

克隆的实体ID,DbDocument有from图形来源字段时有效.

Inherited from: DbBlockReference.cloneObjectId


# color

Optional color: number

颜色.

Inherited from: DbBlockReference.color


# colorIndex

Optional colorIndex: number

颜色索引. 0 随块. 1 Red. 2 Yellow. 3 Green. 4 Cyan. 5 Blue. 6 Magenta. 256 表示随层

Inherited from: DbBlockReference.colorIndex


# columnWidth

Optional columnWidth: number

列宽.


# contentColor

Optional contentColor: number

文字颜色(所有单元格).


# data

Optional data: (string | { alignment: TableCellAlignment ; backgroundColor: number ; contentColor: number ; gridColor: number ; gridVisibility: boolean ; text: string ; textHeight: number })[][]

数据.


# directionBottomToTop

Optional directionBottomToTop: boolean

表格方向是否从上至上.


# disableTitle

Optional disableTitle: boolean

是否禁用标题.


# gridColor

Optional gridColor: number

网格线颜色(所有单元格).


# gridVisibility

Optional gridVisibility: [boolean, number, number]

显示网格线.第二个参数(kHorzTop(1), kHorzInside(2), kHorzBottom(4), kVertLeft(8), kVertInside(16), kVertRight(32); 第三个参数 kTitleRow(1), kHeaderRow(2), kDataRow(4)


# horzCellMargin

Optional horzCellMargin: number

水平方向单元格边距.


# layer

Optional layer: string

图层.

Inherited from: DbBlockReference.layer


# lineWidth

Optional lineWidth: number

线宽.

Inherited from: DbBlockReference.lineWidth


# linetype

Optional linetype: string

线型.

Inherited from: DbBlockReference.linetype


# linetypeScale

Optional linetypeScale: number

线型比例.

Inherited from: DbBlockReference.linetypeScale


# matrix

Optional matrix: IDbMatrixOp[]

矩阵.

Inherited from: DbBlockReference.matrix


# mergeCells

Optional mergeCells: [number, number, number, number][]

需要合并的单元格 [[minRow, maxRow,minColumn, maxColumn], ...]


# normal

Optional normal: [number, number, undefined | number]

法向量.

Inherited from: DbBlockReference.normal


# numColumns

Optional numColumns: number

表格列数.


# numRows

Optional numRows: number

表格行数.


# position

Optional position: [number, number, undefined | number]

坐标.

Inherited from: DbBlockReference.position


# ref

Optional ref: string

参考外部图形,形式为 mapid/version,如 exam/v1.

Inherited from: DbBlockReference.ref


# rotation

Optional rotation: number

旋转角度.

Inherited from: DbBlockReference.rotation


# rowHeight

Optional rowHeight: number

行高.


# scaleFactors

Optional scaleFactors: [number, number, undefined | number]

缩放因子. [x方向,y方向,z方向]

Inherited from: DbBlockReference.scaleFactors


# tableStyleName

Optional tableStyleName: string

表样式名称.


# textHeight

Optional textHeight: number

文字高度(所有单元格).


# typename

Optional typename: string

类型.

Inherited from: DbBlockReference.typename


# vertCellMargin

Optional vertCellMargin: number

竖直方向单元格边距.


# visibility

Optional visibility: boolean

可见.

Inherited from: DbBlockReference.visibility


# xdata

Optional xdata: string

扩展数据.

Inherited from: DbBlockReference.xdata

vjmap / Exports / default / DbText