SiteMapColumnCollection.Add() Method
Adds a new column to the end of the collection and returns the corresponding object.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public virtual SiteMapColumn Add()
#Returns
Type | Description |
---|---|
Site |
A Site |
#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.