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

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

ControlCollection.Remove メソッド

親サーバー コントロールの ControlCollection オブジェクトから、指定したサーバー コントロールを削除します。

名前空間: System.Web.UI
アセンブリ: System.Web (system.web.dll 内)
構文構文

解説解説
使用例使用例

Remove メソッドを使用して、myButton サーバー コントロールから子コントロールを削除するコード例を次に示します。このコードは、まず Contains メソッドを使用して ControlCollection オブジェクトに myChildControl が含まれているかどうかを確認し、含まれていればそれを削除します。

' Use the Contains method to check whether
' a child control exists, and if it does,
' use the Remove method to delete it.        
If myButton.Controls.Contains(myChildControl)
   myButton.Controls.Remove(myChildControl)
   msgRemove.Text = "You removed myLiteralControl."
Else
   msgRemove.Text="The control to remove does not exist."
 
End If
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ControlCollection クラス
ControlCollection メンバ
System.Web.UI 名前空間
RemoveAt
Control.Controls プロパティ


このページでは「.NET Framework クラス ライブラリ リファレンス」からControlCollection.Remove メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からControlCollection.Remove メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からControlCollection.Remove メソッド を検索

英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「ControlCollection.Remove メソッド」の関連用語

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

   

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



ControlCollection.Remove メソッドのページの著作権

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

©2026 GRAS Group, Inc.RSS