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