System.WideStrings.TWideStrings.Move

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

Delphi

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

C++

virtual void __fastcall Move(int CurIndex, int NewIndex);

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
System.WideStrings.pas
System.WideStrings.hpp
System.WideStrings TWideStrings

説明

リスト内の文字列の位置を変更します。

位置 CurIndex にある文字列を位置 NewIndex に移動するには、Move を使用します。位置は、0 から始まるインデックスで指定します。たとえば、次のコード行は、先頭の位置にある文字列を末尾の位置に移動します。

MyStringsObject.Move(0, MyStringsObject.Count)

MyStringsObject->Move(0, MyStringsObject->Count - 1);

文字列にオブジェクトが関連付けられている場合、オブジェクトは新しい位置でその文字列との関連付けを維持します。

関連項目