MVCxImageSliderItemCollection.Add(String, String, 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.v24.2.dll
Declaration
public MVCxImageSliderItem Add(
string imageUrl,
string thumbnailUrl,
string navigateUrl,
string text,
string name
)
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. |
text | String | A String value specifying the text (description) of the current image item. This value is assigned to the ImageSliderItem.Text property. |
name | String | A String value specifying the unique identifier name for the current item. This value is assigned to the ImageSliderItem.Name property. |
Returns
Type | Description |
---|---|
MVCxImageSliderItem | An MVCxImageSliderItem object representing the newly created image item. |