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

> Tra ve ket qua index doi so dau tien bang property key da cho. Voi Drawing object, ham dung cung Drawing property lookup nhu object[property], nen unknown properties va destroyed Drawing objects tra ve nil. the Drawing API chi dang ky API nay khi the required rendering environment is active la true; khi kiem tra do la false, initializer quay lai truoc khi tao cac globals nay.

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

  ## Đối số

  <ParamField path={"object"} type={"any"} required>
    Gia tri can index. Voi Drawing object, RealDrawingObject \_\_index handler duoc su dung.
  </ParamField>

  <ParamField path={"property"} type={"any"} required>
    property key duoc dung de indexing. Drawing object properties dua tren strings.
  </ParamField>

  ## Giá trị trả về

  <ResponseField name={"propertyValue"} type={"any"}>
    Gia tri tra ve khi index object bang property, hoac nil khi Drawing \_\_index handler khong co gia tri cho property do.
  </ResponseField>

  ## Ví dụ

  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>
