Skip to main content
Tab

ForbiddenZoneCollection.Contains(ASPxDockZone) Method

Returns a value indicating whether the collection contains the specified zone.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public bool Contains(
    ASPxDockZone item
)

Parameters

Name Type Description
item ASPxDockZone

An ASPxDockZone object 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 is contained within the panel’s forbidden zone collection (the ASPxDockPanel.ForbiddenZones property).

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

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

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

Implements

See Also