# Interface: IDbTable

表格实体类型接口

# Hierarchy

# Table of contents

# Properties

# Properties

# alignment

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

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


# alpha

• Optional alpha: number

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

Inherited from: IDbBlockReference.alpha


# backgroundColor

• Optional backgroundColor: number

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


# blockname

• Optional blockname: string

块名称.

Inherited from: IDbBlockReference.blockname


# color

• Optional color: number

颜色.

Inherited from: IDbBlockReference.color


# colorIndex

• Optional colorIndex: number

颜色索引.

Inherited from: IDbBlockReference.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 })[][]

数据.


# delete

• Optional delete: boolean

是否删除此实体.

Inherited from: IDbBlockReference.delete


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


# height

• Optional height: number

表格总共的高度.


# horzCellMargin

• Optional horzCellMargin: number

水平方向单元格边距.


# layer

• Optional layer: string

图层.

Inherited from: IDbBlockReference.layer


# lineWidth

• Optional lineWidth: number

线宽.

Inherited from: IDbBlockReference.lineWidth


# linetype

• Optional linetype: string

线型.

Inherited from: IDbBlockReference.linetype


# linetypeScale

• Optional linetypeScale: number

线型比例.

Inherited from: IDbBlockReference.linetypeScale


# matrix

• Optional matrix: IDbMatrixOp[]

矩阵.

Inherited from: IDbBlockReference.matrix


# mergeCells

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

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


# normal

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

法向量.

Inherited from: IDbBlockReference.normal


# numColumns

• Optional numColumns: number

表格列数.


# numRows

• Optional numRows: number

表格行数.


# objectid

• Optional objectid: string

实体句柄,如传了实体句柄,是表示修改此实体.

Inherited from: IDbBlockReference.objectid


# position

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

坐标.

Inherited from: IDbBlockReference.position


# ref

• Optional ref: string

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

Inherited from: IDbBlockReference.ref


# rotation

• Optional rotation: number

旋转角度.

Inherited from: IDbBlockReference.rotation


# rowHeight

• Optional rowHeight: number

行高.


# scaleFactors

• Optional scaleFactors: number

缩放因子.

Inherited from: IDbBlockReference.scaleFactors


# tableStyleName

• Optional tableStyleName: string

表样式名称.


# textHeight

• Optional textHeight: number

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


# typename

• Optional typename: string

类型.

Inherited from: IDbBlockReference.typename


# vertCellMargin

• Optional vertCellMargin: number

竖直方向单元格边距.


# visibility

• Optional visibility: boolean

可见.

Inherited from: IDbBlockReference.visibility


# width

• Optional width: number

表格总共的宽度.


# xdata

• Optional xdata: string

扩展数据.

Inherited from: IDbBlockReference.xdata

vjmap / Exports / IDbText