Skip to main content
A newer version of this page is available. .
Tab

ImageGalleryItemCollection.Add(String, String) Method

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

public ImageGalleryItem Add(
    string imageUrl,
    string text
)

Parameters

Name Type Description
imageUrl String

A String value that specifies the item image url. Initializes the item’s ImageGalleryItem.ImageUrl property.

text String

A String value that specifies the item text. Initializes the item’s ImageGalleryItem.Text property.

Returns

Type Description
ImageGalleryItem

A ImageGalleryItem object that is the newly created item.

See Also