Skip to main content

ImageSliderSettings.ImageContentBytesField Property

Gets or sets an array of the bytes representing the image. A Byte array that contains the image contents.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public string ImageContentBytesField { get; set; }

Property Value

Type Description
String

A string value that specifies the name of the required data source field.

Remarks

The ImageContentBytesField property is in effect if an image slider is bound to a data source.

Use the ImageContentBytesField property to specify the bound data source’s data field (or an xml element’s attribute) which contains the image binary contents. The ImageContentBytesField property maps the ImageSliderItem.ImageContentBytes (via the MVCxImageSliderItem.ImageContentBytes) properties of item objects to the specified data field’s values.

If the ImageContentBytesField property of a data bound image slider is not defined, ImageSlider can automatically obtain item image content from a data field which is named “ImageContentBytes”. You can also use the ImageSliderSettings.ItemDataBound property to manipulate an image slider item’s settings as required.

See Also