Skip to main content

CollectionFactory<T>.Add() Method

Adds a new item to a collection.

Namespace: DevExtreme.AspNet.Mvc.Factories

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public T Add()

Returns

Type Description
T

An object that can be used to further configure the added item.

Remarks

The following example demonstrates how to use the Add method to add a new item to the Accordion item collection:

@(Html.DevExtreme().Accordion()
    .Items(items => {
        items.Add(); // call methods to configure the item
        items.Add();
    })
)
See Also