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

> 最初の引数を指定された property key でインデックスした結果を返します。Drawing object では object[property] と同じ Drawing property lookup を使用するため、unknown properties と destroyed Drawing objects は nil を返します。 the Drawing API は the required rendering environment is active が true の場合だけこの API を登録します。このチェックが false の場合、initializer はこれらの globals を作成する前に戻ります。

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

  ## 引数

  <ParamField path={"object"} type={"any"} required>
    インデックスする値。Drawing object では RealDrawingObject \_\_index handler が使用されます。
  </ParamField>

  <ParamField path={"property"} type={"any"} required>
    インデックスに使用される property key。Drawing object properties は strings ベースです。
  </ParamField>

  ## 戻り値

  <ResponseField name={"propertyValue"} type={"any"}>
    object を property でインデックスして返される値。Drawing \_\_index handler がその property の値を持たない場合は nil。
  </ResponseField>

  ## 例

  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>
