{"name":"ctrlGetProperty","title":"ctrlGetProperty","type":"command","url":"https://community.bistudio.com/wiki/ctrlGetProperty","revid":379130,"updated":"2026-10-09T16:30:40Z","groups":["GUI Control"],"status":"ok","games":{"arma3":"2.24"},"since":"arma3 2.24","arma3_since":"2.24","branch":["dev"],"locality":{"argument":"local","effect":"local"},"description":"Returns one or multiple given properties of given control.","syntaxes":[{"syntax":"control ctrlGetProperty property","params":[{"name":"control","type":"Control","type_expr":"Control"},{"name":"property","type":"String","description":"Any property available for given control type. Case insensitive","type_expr":"String"}],"returns":{"type":"Anything","type_expr":"Anything","description":"Return value depends on the property"},"form":"binary","left":{"text":"control"},"right":{"text":"property"}},{"syntax":"control ctrlGetProperty properties","params":[{"name":"control","type":"Control","type_expr":"Control"},{"name":"properties","type":"Array of Strings","description":"Properties available for given control type. Case insensitive","type_expr":"Array<String>"}],"returns":{"type":"HashMap","type_expr":"HashMap","description":"in format:\n- key: String - Name of the property - value: Anything - Value depends on the property","text":"HashMap in format:\n\n- key: String - Name of the property\n- value: Anything - Value depends on the property"},"form":"binary","left":{"text":"control"},"right":{"text":"properties"}}],"examples":[{"code":["_ctrl ctrlGetProperty \"x\"; // Return 0.015"]},{"code":["_ctrl ctrlGetProperty [\"x\", \"colorBackground\"]; // Return {\"x\": 0.015, \"colorBackground\": [1, 0.4, 1, 1]}"]}],"see_also":["ctrlSetProperty"]}