System.Classes.TCollection.GetAttr
Delphi
function GetAttr(Index: Integer): string; dynamic;
C++
DYNAMIC System::UnicodeString __fastcall GetAttr(int Index);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | protected | System.Classes.pas System.Classes.hpp |
System.Classes | TCollection |
説明
GetItemAttr メソッドを使って検索できるカスタム属性の名前を返します。
TCollection の下位オブジェクトは,ユーザー定義の属性をコレクション内の項目と関連付けることができます。各属性は,名前と,コレクション内の各項目については文字列の値を持ちます。GetAttr メソッドは,属性の名前を返します。
Index は,名前を要求された属性を示します。これは,0 と n-1 の間の値です。n は,GetAttrCount が返す値です。
TCollection はカスタム属性を定義しないため,TCollection が実装する GetAttr は常に空の文字列を返します。