Skip to main content
A newer version of this page is available. .
Tab

NewsItemCollection.Insert(Int32, NewsItem) Method

Adds the specified item to the specified position within the collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

public void Insert(
    int index,
    NewsItem item
)

Parameters

Name Type Description
index Int32

An integer value that specifies the zero-based index at which the specified item should be inserted. If it’s negative or exceeds the number of elements, an exception is raised.

item NewsItem

A NewsItem object to insert.

See Also