Skip to main content
Tab

NewsItemCollection.Add(String, String, String, String) Method

Creates a new item with the specified settings and adds it to the collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

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

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.

name String

A string value that specifies the item’s unique identifier name. This value is assigned to the NewsItem.Name property.

Returns

Type Description
NewsItem

A NewsItem object that has been added to the collection.

See Also