Skip to main content

MVCxForbiddenZoneCollection.Contains(String) Method

Returns a value indicating whether the collection contains a zone with the specified zoneUID property value.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public bool Contains(
    string zoneUID
)

Parameters

Name Type Description
zoneUID String

A string that is the zoneUID property value of the zone to locate in the collection.

Returns

Type Description
Boolean

true if the specified zone belongs to the collection; otherwise, false.

Remarks

The Contains method is used to determine whether the zone with the specified UID is contained within the panel’s forbidden zone collection (the DockPanelSettings.ForbiddenZones property).

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

Use the MVCxForbiddenZoneCollection.Add or Collection<T>.Insert methods to add a new item to the collection.

To remove the particular item from the collection, use the MVCxForbiddenZoneCollection.Remove method, or use the StateManagedCollectionBase.Clear method to remove all items from the collection.

See Also