Skip to main content

MVCxForbiddenZoneCollection.Add(String) Method

Add a zone object with the specified zoneUID property value to the forbidden zone collection.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public void Add(
    string zoneUID
)

Parameters

Name Type Description
zoneUID String

A string that is the zoneUID propery value of zone to add to the collection.

Remarks

The Add method adds a zone with the specified UID to the end of the panel’s forbidden zone collection (the DockPanelSettings.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 MVCxForbiddenZoneCollection.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.

See Also