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

> Retorna o resultado de indexar o primeiro argumento com o property key fornecido. Para Drawing object, usa o mesmo Drawing property lookup de object[property], entao unknown properties e destroyed Drawing objects retornam nil. the Drawing API registra esta API somente quando the required rendering environment is active e true; quando essa verificacao e false, o initializer retorna antes de criar estes 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. Com Drawing object, o RealDrawingObject \_\_index handler e usado.
  </ParamField>

  <ParamField path={"property"} type={"any"} required>
    property key usado para indexacao. Drawing object properties sao baseadas em strings.
  </ParamField>

  ## Retornos

  <ResponseField name={"propertyValue"} type={"any"}>
    Valor retornado ao indexar object com property, ou nil quando o Drawing \_\_index handler nao tem valor para essa property.
  </ResponseField>

  ## Exemplo

  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>
