System.Windows.Forms.ButtonBase.Image Property

Gets or sets the image that is displayed on a button control.

Syntax

[System.ComponentModel.Localizable(true)]
public System.Drawing.Image Image { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the ButtonBase.Image property is set, the ButtonBase.ImageList property will be set to null, and the ButtonBase.ImageIndex property will be set to its default, -1.

Note:

If the ButtonBase.FlatStyle property is set to FlatStyle.System, any images assigned to the ButtonBase.Image property are not displayed.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0