Skip to content
On this page

mxcad API 文档 / McGeStringArray

Class: McGeStringArray

表示字符串的数组

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new McGeStringArray(imp?)

构造函数。

Parameters

NameType
imp?object

Properties

imp

imp: any

Methods

append

append(val): void

添加一个值

Parameters

NameType
valstring

Returns

void


at

at(index, decodeFromGb2312?): string

得到数据元素的值

Parameters

NameTypeDefault value
indexnumberundefined
decodeFromGb2312booleantrue

Returns

string


clear

clear(): void

Returns

void


copy

copy(val): McGeStringArray

复制对象的值

Parameters

NameType
valMcGeStringArray

Returns

McGeStringArray


forEach

forEach(call, decodeFromGb2312?): void

遍历数组

Parameters

NameTypeDefault value
call(val: string, index: number) => voidundefined
decodeFromGb2312booleantrue

Returns

void


length

length(): number

返回数组长度

Returns

number


setAt

setAt(index, val, decodeFromGb2312?): void

设置数据元素的值

Parameters

NameTypeDefault value
indexnumberundefined
valstringundefined
decodeFromGb2312booleantrue

Returns

void