System.Rtti.TRttiIndexedProperty.GetValue

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function GetValue(Instance: Pointer; const Args: array of TValue): TValue;

C++

TValue __fastcall GetValue(void * Instance, const TValue *Args, const int Args_High);

プロパティ

種類 可視性 ソース ユニット
function public
System.Rtti.pas
System.Rtti.hpp
System.Rtti TRttiIndexedProperty

説明

現在の TRttiIndexedProperty インスタンスが表すコレクションから、指定された要素の値を返します。

GetValue は、指定されたインデックスのプロパティ値を表す TValue を返します。

パラメータは、次の表のとおりです:

名前 説明
Instance インデックス付けされたプロパティを保有する、クラスの対象インスタンス。
Args インデックス情報。

例(Delphi):

 
 TCar = class
 public
   function GetDoor(Index1: Integer; Index2: Integer): Pointer;
   property Door[Index1: Integer; Index2: Integer]: Pointer read GetDoor;
 end;
 
 // ...
 
 APointer := TRttiIndexedPropertyInstance.GetValue(TCarInstance, [SomeValueForIndex1, SomeValueForIndex2]);

関連項目