NewsItemCollection.Add(String, 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
NuGet Package: DevExpress.Web
#Declaration
public NewsItem Add(
string headerText,
string text,
string navigateUrl,
string name,
string imageUrl
)
#Parameters
Name | Type | Description |
---|---|---|
header |
String | A string value that specifies the text dispalyed within the item’s header. This value is assigned to the News |
text | String | A string value that specifies the item’s contents. This value is assigned to the News |
navigate |
String | A string value that specifies the item’s URL. This value is assigned to the News |
name | String | A string value that specifies the item’s unique identifier name. This value is assigned to the News |
image |
String | A string value that specifies the location of the item’s image. |
#Returns
Type | Description |
---|---|
News |
A News |