Skip to content
On this page

mxcad API 文档 / McDbObjectArray

Class: McDbObjectArray

McDbObject 的一个数组,该数组存储了多个 McDbObject 对象的引用。

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new McDbObjectArray(imp?)

Parameters

NameType
imp?any

Properties

aryVal

aryVal: McDbObject[] = []

Methods

empty

empty(): boolean

清空数组

Returns

boolean


forEach

forEach(call): void

遍历对象

Parameters

NameType
call(val: McDbObject, index: number) => void

Returns

void


length

length(): number

数组长度

Returns

number