ImageZoomNavigatorItemCollection.Add(String, String) Method
In This Article
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.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
image |
String | A String value specifying the path to the item image. Initializes the item’s Image |
large |
String | A String value specifying the path to the item large image. Initializes the item’s Image |
#Returns
Type | Description |
---|---|
Image |
An Image |
#Remarks
@Html.DevExpress().ImageZoomNavigator(settings => {
settings.Name = "zoomNavigator";
...
settings.Items.Add("~/Images/small/img1.jpg", "~/Images/large/img1.jpg");
settings.Items.Add("~/Images/small/img2.jpg", "~/Images/large/img2.jpg");
settings.Items.Add("~/Images/small/img3.jpg", "~/Images/large/img3.jpg");
...
}).GetHtml()
See Also