Back to Devexpress

EditorButton.EnableImageTransparency Property

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-editorbutton-b72dde79.md

latest2.4 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[DefaultValue(true)]
[DXCategory("Appearance")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool EnableImageTransparency { get; set; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
<DefaultValue(True)>
<DXCategory("Appearance")>
Public Property EnableImageTransparency As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

ImageOptions

EditorButton Class

EditorButton Members

DevExpress.XtraEditors.Controls Namespace