NewsItemCollection.Add(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
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