Skip to content

mxcad_2d API 文档 / 2d / MxPropertiesWindowCustomValue

Class: MxPropertiesWindowCustomValue

2d.MxPropertiesWindowCustomValue

MxPropertiesWindowCustomValue 表示属性窗口中单个自定义属性项的值描述。

Description

该类用于在属性窗口中描述一个自定义属性项,包括属性名称、类型、具体值以及是否只读。 该结构可用于属性读取回调、属性设置回调或对象自定义属性同步。 使用方法总结:

  1. 创建 MxPropertiesWindowCustomValue 实例;
  2. 设置 sVarNameiVarTypevalisOnlyRead 等字段;
  3. 将其返回给 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

自定义属性窗口值