Skip to main content

MVCxImageGalleryItemCollection.Add(String, String, String, String, String) Method

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

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.2.dll

Declaration

public MVCxImageGalleryItem Add(
    string imageUrl,
    string text,
    string thumbnailUrl,
    string fullscreenViewerThumbnailUrl,
    string fullscreenViewerText
)

Parameters

Name Type Description
imageUrl String

A String value specifying the path to the ImageGallery item’s image. This value is assigned to the MVCxImageGalleryItemCollection.ImageUrl property.

text String

A String value specifying the text (description) of the current image item. This value is assigned to the MVCxImageGalleryItemCollection.Text property.

thumbnailUrl String

A String value specifying the path to the item thumbnail image. This value is assigned to the MVCxImageGalleryItemCollection.ThumbnailUrl property.

fullscreenViewerThumbnailUrl String

A String value specifying the path to the item thumbnail image within the full-screen viewer. This value is assigned to the MVCxImageGalleryItemCollection.FullscreenViewerThumbnailUrl property.

fullscreenViewerText String

A String value specifying the text (description) of the current image item within the full-screen viewer. This value is assigned to the MVCxImageGalleryItemCollection.FullscreenViewerText property.

Returns

Type Description
MVCxImageGalleryItem

An MVCxImageGalleryItem object representing the newly created image gallery item.

See Also