> ## 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

> Retourne le resultat de l indexation du premier argument avec le property key donne. Pour Drawing object, cela utilise le meme Drawing property lookup que object[property], donc unknown properties et destroyed Drawing objects retournent nil. the Drawing API enregistre cette API uniquement quand the required rendering environment is active vaut true; quand cette verification vaut false, l initializer retourne avant de creer ces globals.

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

  ## Arguments

  <ParamField path={"object"} type={"any"} required>
    Valeur a indexer. Avec Drawing object, le RealDrawingObject \_\_index handler est utilise.
  </ParamField>

  <ParamField path={"property"} type={"any"} required>
    property key utilise pour l indexation. Les Drawing object properties sont basees sur des strings.
  </ParamField>

  ## Retours

  <ResponseField name={"propertyValue"} type={"any"}>
    Valeur retournee par l indexation de object avec property, ou nil lorsque le Drawing \_\_index handler n a pas de valeur pour cette property.
  </ResponseField>

  ## Exemple

  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>
