次の方法で共有


ImageList.ImageCollection.RemoveAt メソッド

イメージをリストから削除します。

Public Overridable Sub RemoveAt( _
   ByVal index As Integer _) Implements IList.RemoveAt
[C#]
public virtual void RemoveAt(intindex);
[C++]
public: virtual void RemoveAt(intindex);
[JScript]
public function RemoveAt(
   index : int);

パラメータ

  • index
    削除するイメージのインデックス。

実装

IList.RemoveAt

例外

例外の種類 条件
Exception イメージを削除できませんでした。
ArgumentOutOfRangeException インデックス値が 0 未満でした。

または

インデックス値がイメージの Count 以上です。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

ImageList.ImageCollection クラス | ImageList.ImageCollection メンバ | System.Windows.Forms 名前空間 | Clear | Remove