Skip to main content
Tab

NewsItemCollection.Add(String, String, String) Method

Adds a new item to the end of the collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public NewsItem Add(
    string headerText,
    string text,
    string navigateUrl
)

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.

text String

A string value that specifies the item’s contents. This value is assigned to the NewsItem.Text property.

navigateUrl String

A string value that specifies the item’s URL. This value is assigned to the NewsItem.NavigateUrl 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 settings and appends it to the collection.

See Also