Tab
A newer version of this page is available. Switch to the current version.

ImageSliderItemCollection.Add(String, String, String, String, String) Method

Adds a new item with the specified settings to the end of the collection and returns the newly created object.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public ImageSliderItem Add(
    string imageUrl,
    string thumbnailUrl,
    string navigateUrl,
    string text,
    string name
)
Public Function Add(
    imageUrl As String,
    thumbnailUrl As String,
    navigateUrl As String,
    text As String,
    name As String
) As ImageSliderItem

Parameters

Name Type Description
imageUrl String

A String value specifying the path to the item image. Initializes the item's ImageSliderItem.ImageUrl property.

thumbnailUrl String

A String value specifying the path to the item image thumbnail. Initializes the item's ImageSliderItem.ThumbnailUrl property.

navigateUrl String

A String value specifying the URL to which the browser navigates when the item's text is clicked. Initializes the item's ImageSliderItem.NavigateUrl property.

text String

A String value specifying the item's display text. Initializes the item's ImageSliderItem.Text property.

name String

A String value that specifies the created item's name. Initializes the item's ImageSliderItem.Name property.

Returns

Type Description
ImageSliderItem

An ImageSliderItem object that is the newly created item.

Remarks

Use the Add method to add a new item with the specified settings to the ImageSliderItemCollection object.

See Also