mxcad_2d API 文档 / 2d / MxPropertiesWindowCustomValue
Class: MxPropertiesWindowCustomValue
2d.MxPropertiesWindowCustomValue
MxPropertiesWindowCustomValue 表示属性窗口中单个自定义属性项的值描述。
Description
该类用于在属性窗口中描述一个自定义属性项,包括属性名称、类型、具体值以及是否只读。 该结构可用于属性读取回调、属性设置回调或对象自定义属性同步。 使用方法总结:
- 创建
MxPropertiesWindowCustomValue实例; - 设置
sVarName、iVarType、val、isOnlyRead等字段; - 将其返回给
MxPropertiesWindowCustom.getEntityProperties或传入setEntityProperties。
Table of contents
Constructors
Properties
Constructors
constructor
• new MxPropertiesWindowCustomValue()
Properties
iVarType
• iVarType: number = 1
自定义属性窗口类型
isOnlyRead
• isOnlyRead: boolean = false
是否只读
sVarName
• sVarName: string = ""
自定义属性窗口名
val
• val: any
自定义属性窗口值
