PropertyGrid.PropertyTabCollection.Clear Method (PropertyTabScope)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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


Type: System.ComponentModel.PropertyTabScope

The scope of the tabs to clear.

Exception Condition

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