Class ImageButton
ImageButton class
Inheritance
System.Object
ImageButton
Implements
System.Windows.Forms.IButtonControl
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class ImageButton : PictureBox, IButtonControl
Constructors
ImageButton()
Constructor of the ImageButton
Declaration
public ImageButton()
ImageButton(IContainer)
Constructor of the ImageButton
Declaration
public ImageButton(IContainer container)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.IContainer | container | Provide the functionality for the Container. |
Properties
DialogResult
Gets / Sets the DialogResult.
Declaration
public DialogResult DialogResult { get; set; }
Property Value
Type |
---|
System.Windows.Forms.DialogResult |
DownImage
Gets / Sets the DownImage
Declaration
public Image DownImage { get; set; }
Property Value
Type |
---|
System.Drawing.Image |
HoverImage
Gets / Sets the HoverImage
Declaration
public Image HoverImage { get; set; }
Property Value
Type |
---|
System.Drawing.Image |
NormalImage
Gets / Sets the NormalImage
Declaration
public Image NormalImage { get; set; }
Property Value
Type |
---|
System.Drawing.Image |
Methods
CreateAccessibilityInstance()
Provided accessibility to the control.
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type |
---|
System.Windows.Forms.AccessibleObject |
NotifyDefault(Boolean)
Specifies the NotifyDefault
Declaration
public void NotifyDefault(bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | value | Indicates value. |
OnLocationChanged(EventArgs)
Declaration
protected override void OnLocationChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnLostFocus(EventArgs)
Declaration
protected override void OnLostFocus(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e |
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e |
OnMouseUp(MouseEventArgs)
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e |
OnPaint(PaintEventArgs)
Declaration
protected override void OnPaint(PaintEventArgs pe)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | pe |
OnTextChanged(EventArgs)
Declaration
protected override void OnTextChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnVisibleChanged(EventArgs)
Raises the ImageButton.VisibleChanged event.
Declaration
protected override void OnVisibleChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
PerformClick()
Raises the click event
Declaration
public void PerformClick()
PreProcessMessage(ref Message)
Preprocesses keyboard or input messages within the message loop before they are dispatched.
Declaration
public override bool PreProcessMessage(ref Message msg)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | msg | A System.Windows.Forms.Message, passed by reference, that represents the message to process. The possible values are WM_KEYDOWN, WM_SYSKEYDOWN, WM_CHAR, and WM_SYSCHAR. |
Returns
Type | Description |
---|---|
System.Boolean | true if the message was processed by the control; otherwise, false. |
Implements
System.Windows.Forms.IButtonControl