ControlBindingsCollection.RemoveAt メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ControlBindingsCollection.RemoveAt メソッドの意味・解説 

ControlBindingsCollection.RemoveAt メソッド

指定したインデックスBinding削除します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Sub RemoveAt ( _
    index As Integer _
)
Dim instance As ControlBindingsCollection
Dim index As Integer

instance.RemoveAt(index)
public void RemoveAt (
    int index
)
public:
void RemoveAt (
    int index
)
public void RemoveAt (
    int index
)

パラメータ

index

削除する項目の 0 から始まるインデックス

例外例外
解説解説

削除成功すると、CollectionChanged イベント発生します

使用例使用例

インデックスコレクション範囲内にあるどうかを Count プロパティ使用して判断するコード例次に示しますインデックスコレクション範囲内にあった場合は、3 番目の Binding削除されます。

Private Sub RemoveThirdBinding()
    If textBox1.DataBindings.Count < 3 Then
        Return
    End If
    textBox1.DataBindings.RemoveAt(2)
End Sub
private void RemoveThirdBinding()
{
   if(textBox1.DataBindings.Count < 3) return;
   textBox1.DataBindings.RemoveAt(2);
}
private:
   void RemoveThirdBinding()
   {
      if ( textBox1->DataBindings->Count < 3 )
      {
         return;
      }
      textBox1->DataBindings->RemoveAt( 2 );
   }
private void RemoveThirdBinding()
{
    if (textBox1.get_DataBindings().get_Count() < 3) {
        return ;
    }
    textBox1.get_DataBindings().RemoveAt(2);
} //RemoveThirdBinding
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ControlBindingsCollection クラス
ControlBindingsCollection メンバ
System.Windows.Forms 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

ControlBindingsCollection.RemoveAt メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ControlBindingsCollection.RemoveAt メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS