M3D / M3D / Shapes / PropertySet
Class: PropertySet
Memberof
M3D.Shapes
Description
属性集
Date
2022-1-12
Version
1.0
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Table of contents
Constructors
Methods
Constructors
constructor
• new PropertySet(): PropertySet
Returns
Description
构造函数
Methods
add
▸ add(property
): void
Parameters
Name | Type | Description |
---|---|---|
property | Property | 属性对象 |
Returns
void
Description
添加属性
clear
▸ clear(): void
Returns
void
Description
清空属性
formJson
▸ formJson(): PropertySet
Returns
Description
解析JSON数据
get
▸ get(key
): Property
Parameters
Name | Type |
---|---|
key | string |
Returns
Description
获取属性
getAll
▸ getAll(): Property
[]
Returns
Property
[]
Description
获取所有属性
remove
▸ remove(key
): void
Parameters
Name | Type |
---|---|
key | string |
Returns
void
Description
删除属性
set
▸ set(key
, value
): void
Parameters
Name | Type |
---|---|
key | string |
value | any |
Returns
void
Description
设置属性
setValue
▸ setValue(value
): void
Parameters
Name | Type |
---|---|
value | any |
Returns
void
Description
设置值
toJson
▸ toJson(): void
Returns
void
Description
转为Json数据