ImageProperties Class
Contains the settings which define the image that can be displayed within particular elements of web controls.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
public class ImageProperties :
ImagePropertiesBase
Public Class ImageProperties
Inherits ImagePropertiesBase
Related API Members
The following members return ImageProperties objects:
Related API Members
The following members return ImageProperties objects:
Remarks
The ImageProperties class defines an individual image’s settings. An image can be displayed within different elements of web controls (for instance, within items and group headers of a navbar control, within menu items of a menu control, etc).
Using the properties exposed by the ImageProperties class you can specify the URL of the image source (ImagePropertiesBase.Url), define the image size (ImagePropertiesBase.Width and ImagePropertiesBase.Height), set the alternate text displayed instead of the image when the image is unavailable (ImagePropertiesBase.AlternateText) and define the alignment of the image in relation to the text of a container item.
All graphic file formats, which can be interpreted by internet browsers, are supported. Note that if a PNG image with alpha channel is specified via the ImagePropertiesBase.Url property, the image’s size should be defined explicitly via the ImagePropertiesBase.Width and ImagePropertiesBase.Height properties in order to correctly display the image at runtime.