Skip to main content

MVCxImageSliderItemCollection.Add(String, String, String) Method

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

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public MVCxImageSliderItem Add(
    string imageUrl,
    string thumbnailUrl,
    string navigateUrl
)

Parameters

Name Type Description
imageUrl String

A String value specifying the path to the ImageSlider item’s image. This value is assigned to the ImagePropertiesBase.Url property.

thumbnailUrl String

A String value specifying the path to the item thumbnail image. This value is assigned to the ImagePropertiesBase.Url property.

navigateUrl String

A String value specifying the URL to which the browser navigates when the item is clicked. This value is assigned to the ImageSliderItem.NavigateUrl property.

Returns

Type Description
MVCxImageSliderItem

An MVCxImageSliderItem object representing the newly created image item.

See Also