Skip to content

getrenderproperty

getrenderproperty retrieves the value of a property from a Drawing object. This behaves identically to using object[property], but is useful when working with dynamic property names or for reflection-like access.

function getrenderproperty(drawing: Drawing, property: string): any

Parameters

Parameter Description
drawing A valid Drawing object.
property The name of the property to retrieve.

Example

Reading drawing properties
1
2
3
4
5
6
local circle = Drawing.new("Circle")
circle.Radius = 50
circle.Visible = true

print(getrenderproperty(circle, "Radius"))    -- Output: 50
print(getrenderproperty(circle, "Visible"))   -- Output: true