次の方法で共有


PropertyGrid.PropertyTabCollection.Clear メソッド

指定したスコープのプロパティ タブをコレクションからすべて削除します。

Public Sub Clear( _
   ByVal tabScope As PropertyTabScope _)
[C#]
public void Clear(PropertyTabScopetabScope);
[C++]
public: void Clear(PropertyTabScopetabScope);
[JScript]
public function Clear(
   tabScope : PropertyTabScope);

パラメータ

  • tabScope
    削除するタブのスコープ。

例外

例外の種類 条件
ArgumentException tabScope パラメータに代入された値が PropertyTabScope.Document 未満です。

解説

このメソッドは、指定したスコープまたはそれより小さいスコープのタブを削除します。 tabScope パラメータは、 PropertyTabScope.Component または PropertyTabScope.Document にする必要があります。

必要条件

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

参照

PropertyGrid.PropertyTabCollection クラス | PropertyGrid.PropertyTabCollection メンバ | System.Windows.Forms 名前空間