Skip to main content
Tab

ForbiddenZoneCollection.Add(ASPxDockZone) Method

Add the specified zone object to the forbidden zone collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public void Add(
    ASPxDockZone item
)

Parameters

Name Type Description
item ASPxDockZone

An ASPxDockZone object to add to the forbidden zone collection.

Remarks

The Add method adds the specified item to the end of the panel’s forbidden zone collection (the ASPxDockPanel.ForbiddenZones property). To insert an item in the collection at a specific index, use the Collection<T>.Insert method.

To obtain the specified item from the collection, use the Collection<T>.Find method or the Collection<T>.Item property.

Use the ForbiddenZoneCollection.Remove method to remove the particular item from the collection or use the StateManagedCollectionBase.Clear method to remove all items from the collection.

Note

If the zone added to the panel’s forbidden zone collection owns the panel, it is automatically undocked.

Implements

See Also