Skip to main content
Tab

ImageZoomNavigatorItemCollection.Add(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.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public ImageZoomNavigatorItem Add(
    string imageUrl
)

Parameters

Name Type Description
imageUrl String

A String value specifying the path to the item image. Initializes the item’s ImageZoomNavigatorItem.ImageUrl 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");
settings.Items.Add("~/Images/small/img2.jpg");
settings.Items.Add("~/Images/small/img3.jpg");
...
}).GetHtml()
See Also