##### Getting property information

All the methods mentioned in this section are provided in the API class. Use the corresponding method to get the property information which you want.

###### Getting property value

The following methods are used for getting the property values of different types and return the property value:

- getInt(String handle, String name)
- getLong(String handle, String name)
- getFloat(String handle, String name)
- getDouble(String handle, String name)
- getString(String handle, String name)
- getBool(String handle, String name)
- getColor(String handle, String name)
- getControlFields(String handle, String name)

Parameters

- handle - Object handle.
- name - Property name.

Note: The getControlFields(String handle, String name) method is used for getting fields that can control property values at runtime.

###### Getting property name, type and checking property name

- getPropType(String handle, String name)
  Gets and returns the property type defined in the Designer class.
- getPropnames(String handle)
  Gets property names and returns a name array.
- containPropName(String handle, String name)
  Checks whether the property name exists. If it exists, it will return true.

Parameters

- handle - Selected object handle.
- name - Name of the property.

###### Changing property value

The following methods are used for changing the property values of different types. They will return true if the value is changed.

- set(String handle, String name, Boolean value)
- set(String handle, String name, int value)
- set(String handle, String name, long value)
- set(String handle, String name, float value)
- set(String handle, String name, double value)
- set(String handle, String name, String value)
- set(String handle, String name, Color value)
- setReference(String handle, String name, String refHandle)
- setControlFields(String handle, String prop, String field)

Parameters

- handle - Target object handle.
- name - Property name.
- value - Property value.
- refHandle - Referenced object handle.
- prop - Property name.

Note: The setControlFields(String handle, String prop, String field) method is used for setting a field to control the property value at runtime. The setReference(String handle, String name, String refHandle) method is used for changing the reference property value of an object.