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

NewsItemCollection.Add(String) Method

Adds a new item to the end of the collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

public NewsItem Add(
    string headerText
)

Parameters

Name Type Description
headerText String

A string value that specifies the text dispalyed within the item’s header. This value is assigned to the NewsItem.HeaderText property.

Returns

Type Description
NewsItem

A NewsItem object that has been added to the collection.

Remarks

This method creates a new NewsItem object, initializes it with the specified header text and appends it to the collection.

See Also