Generics.Collections.TList のメソッド

From RAD Studio VCL Documentation (Japanese)
Jump to: navigation, search

Delphi の情報

procedure Notify(const Item: T; Action: TCollectionNotification); virtual;

OnNotify イベントをトリガします。

function Add(const Value: T): Integer;

リストの末尾に項目を追加します。

procedure AddRange(const Values: array of T); overload;

リストの末尾にコレクションを追加します。

procedure AddRange(const Collection); overload;

リストの末尾にコレクションを追加します。

procedure AddRange(Collection); overload;

リストの末尾にコレクションを追加します。

procedure Insert(Index: Integer; const Value: T);

リストにエントリを挿入します。

procedure InsertRange(Index: Integer; const Values: array of T); overload;

リストにコレクションを挿入します。

procedure InsertRange(Index: Integer; const Collection); overload;

リストにコレクションを挿入します。

procedure InsertRange(Index: Integer; const Collection); overload;

リストにコレクションを挿入します。

function Remove(const Value: T): Integer;

最初に出現した値を削除します。

procedure Delete(Index: Integer);

インデックスが示す位置のエントリを削除します。

procedure DeleteRange(AIndex: Integer; ACount: Integer);

インデックスが示す位置のいくつかのエントリを削除します。

function Extract(const Value: T): T;

リストのエントリを削除してその値を返します。

procedure Exchange(Index1: Integer; Index2: Integer);

リスト内の 2 つの項目の位置を交換します。

procedure Move(CurIndex: Integer; NewIndex: Integer);

リスト内の項目の位置を変更します。

function First(): T;

リスト内の最初の要素を返します。

function Last(): T;

リスト内の最後の要素を返します。

procedure Clear

リストのエントリをすべて削除します。

function Contains(const Value: T): Boolean;

要素がリストに存在するかどうかを検査します。

function IndexOf(const Value: T): Integer;

リニア検索を使用して要素を検索します。

function LastIndexOf(const Value: T): Integer;

エントリの最後のインスタンスに対するインデックスを取得します。

procedure Reverse

リストの順序を反転します。

procedure Sort overload;

リストをソートします。

procedure Sort(const AComparer); overload;

リストをソートします。

function BinarySearch(const Item: T; out Index: Integer): Boolean; overload;

バイナリ検索を使用して、要素のソートされたリストを検索します。

function BinarySearch(const Item: T;

out Index: Integer;

const AComparer): Boolean; overload;

バイナリ検索を使用して、要素のソートされたリストを検索します。

procedure TrimExcess

リストの容量にリスト内の要素数を設定します。


ユニット: Generics.Collections

種類: メソッド

可視性: public

所属クラス: TList


説明

このトピックには現在ドキュメントが存在しません。「ノート」を利用してこのトピックの改良について話しあうことができます。

Personal tools