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

ImageZoomNavigatorItemCollection.Add(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 ImageZoomNavigatorItem Add(
    string imageUrl,
    string largeImageUrl,
    string thumbnailUrl
)

Parameters

Name Type Description
imageUrl String

A String value specifying the path to the item image. Initializes the item’s ImageZoomNavigatorItem.ImageUrl property.

largeImageUrl String

A String value specifying the path to the item large image. Initializes the item’s ImageZoomNavigatorItem.LargeImageUrl property.

thumbnailUrl String

A String value specifying the path to the item thumbnail. Initializes the item’s ImageZoomNavigatorItem.ThumbnailUrl property.

Returns

Type Description
ImageZoomNavigatorItem

An ImageZoomNavigatorItem object that is the newly created item.

Remarks

@Html.DevExpress().ImageZoomNavigator(settings => {
settings.Name = "zoomNavigator";
...
settings.Items.Add("~/Images/small/img1.jpg", "~/Images/large/img1.jpg", "~/Thumbs/img1.jpg");
...
}).GetHtml()
See Also