Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

EditorButton.EnableImageTransparency Property

Gets or sets whether specific colors in the button’s image are transparent, when displayed. This property is obsolete. Use the EditorButton.ImageOptions.EnableTransparency property instead.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
[DefaultValue(true)]
[DXCategory("Appearance")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool EnableImageTransparency { get; set; }

#Property Value

Type Default Description
Boolean true

true if specific colors in the button’s image are transparent, when displayed; otherwise, false.

#Remarks

A button can display an image, specified by the EditorButton.ImageOptions property, if the EditorButton.Kind property is set to ButtonPredefines.Glyph. If the image contains transparency, it is displayed as is, with transparency, regardless of the EnableImageTransparency option.

The EnableImageTransparency option is in effect for images without transparent pixels. When it is set to true, all pixels that match the color of the left top corner are displayed transparent. If the option is disabled, the image is displayed as is.

See Also