Tab

NewsItemCollection.Add(String, String) Method

Adds a new item to the end of the collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

public NewsItem Add(
    string headerText,
    string text
)

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.

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