Skip to main content
Tab

ImageObjectProperties.GenerateEmptyAlternateText Property

Gets or sets a value indicating whether the image generates an alternate text attribute for an empty string value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(false)]
public bool GenerateEmptyAlternateText { get; set; }

Property Value

Type Default Description
Boolean false

true if the image generates the alternate text attribute for an empty string value; otherwise, false.

Remarks

By default, when the ASPxObjectContainer.AlternateText property is not set, the image does not include the alt attribute to specify the alternate text in the image rendering. Set the GenerateEmptyAlternateText property to true to always include the alternate text attribute in rendered output for the image.

See Also