> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# getrenderproperty

> Devuelve el resultado de indexar el primer argumento con el property key dado. Para Drawing object, usa el mismo Drawing property lookup que object[property], por lo que unknown properties y destroyed Drawing objects devuelven nil. the Drawing API registra esta API solo cuando the required rendering environment is active es true; cuando esa comprobacion es false, el initializer vuelve antes de crear estos globals.

<div className="real-function-page">
  ```lua theme={null}
  getrenderproperty(object: any, property: any): any
  ```

  ## Argumentos

  <ParamField path={"object"} type={"any"} required>
    Valor a indexar. Con Drawing object, se usa el RealDrawingObject \_\_index handler.
  </ParamField>

  <ParamField path={"property"} type={"any"} required>
    property key usado para indexar. Las Drawing object properties se basan en strings.
  </ParamField>

  ## Retornos

  <ResponseField name={"propertyValue"} type={"any"}>
    Valor devuelto al indexar object con property, o nil cuando el Drawing \_\_index handler no tiene valor para esa property.
  </ResponseField>

  ## Ejemplo

  Read a Drawing property like direct indexing.

  ```lua theme={null}
  local line = Drawing.new("Line")
  line.Thickness = 3

  print(getrenderproperty(line, "Thickness"))
  print(getrenderproperty(line, "MissingProperty"))
  ```
</div>
