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

ImagePropertiesEx.UrlDisabled Property

Gets or sets the URL of the image displayed for an element’s disabled state.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue("")]
public string UrlDisabled { get; set; }

Property Value

Type Default Description
String String.Empty

A String value that specifies the location of an image.

Remarks

Use the UrlDisabled property to specify the URL of an image that corresponds to the element’s disabled state. You can use a relative or an absolute URL. A relative URL relates the location of the image to the location of the Web page without specifying a complete path on the server. The path is relative to the location of the Web page. This makes it easier to move the entire site to another directory on the server without updating the code. An absolute URL provides the complete path, therefore moving the site to another directory requires updating code.

An image’s alignment and size can be specified via the ImagePropertiesBase.Align, ImagePropertiesBase.Height and ImagePropertiesBase.Width properties.

Note that in order to correctly display a PNG file with alpha channel at runtime, the image’s size (the ImagePropertiesBase.Width and ImagePropertiesBase.Height properties) should be specified explicitly.

See Also