Tab

SiteMapColumnCollection.Add() Method

Adds a new column to the end of the collection and returns the corresponding object.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

public virtual SiteMapColumn Add()

Returns

Type Description
SiteMapColumn

A SiteMapColumn object representing the newly created column.

Remarks

The ASPxSiteMapControl control allows manipulating its columns collection, accessed via the ASPxSiteMapControlBase.Columns property.

The Add method is useful to add a new column to the end of the columns collection. To insert a column into the specified position within the collection, use the Collection<T>.Insert method.

Use the Move method to move the specified column within the collection from one index to another.

To remove the specified column from the collection, use the Collection<T>.Remove or Collection.RemoveAt methods.

See Also