PropertyGrid.PropertyTabCollection.Clear Method (PropertyTabScope)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes all the Property tabs of the specified scope from the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void Clear(
	PropertyTabScope tabScope
)

Parameters

tabScope
Type: System.ComponentModel.PropertyTabScope

The scope of the tabs to clear.

Exception Condition
ArgumentException

The assigned value of the tabScope parameter is less than the Document value of PropertyTabScope.

This method clears the tabs of the specified scope or smaller. The tabScope parameter must be the Component or Document value of PropertyTabScope.

.NET Framework
Available since 1.1
Return to top
Show: