Skip to content

[mxcad_2d API documentation] (../README. md)/[2d] (../modules/2d. md)/MxProperties Window Custom Value

Class: MxPropertiesWindowCustomValue

2d.MxPropertiesWindowCustomValue

MxProperties Window Custom Value represents the value description of a single custom property item in the property window.

Description

This class is used to describe a custom property item in the property window, including the property name, type, specific value, and whether it is read-only. This structure can be used for property reading callbacks, property setting callbacks, or object custom property synchronization. Summary of usage:

  1. Create an instance of MxProperties Window Custom Value;
  2. Set fields such as sVarName, iVarType, val, isOnlyRead, etc;
  3. Return it to 'MxProperties Window Custom. getEntity Properties' or pass it in' setEntity Properties'.

Table of contents

Constructors

Properties

Constructors

constructor

new MxPropertiesWindowCustomValue()

Properties

iVarType

iVarType: number = 1

Custom attribute window type


isOnlyRead

isOnlyRead: boolean = false

Read only or not


sVarName

sVarName: string = ""

Custom attribute window name


val

val: any

Custom attribute window value