Class RoundedPictureBox
- Namespace
- RadioExt_Helper.custom_controls
- Assembly
- RadioExt-Helper.dll
Represents a picture box control with rounded corners and customizable border.
public sealed class RoundedPictureBox : PictureBox, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ISupportInitialize
- Inheritance
-
RoundedPictureBox
- Implements
- Inherited Members
- Extension Methods
Constructors
RoundedPictureBox()
Initializes a new instance of the RoundedPictureBox class.
public RoundedPictureBox()
Properties
BorderColor
Gets or sets the color of the border.
[Browsable(true)]
public Color BorderColor { get; set; }
Property Value
BorderRadius
Gets or sets the radius of the rounded corners. Set to 0 to disable rounded corners.
[Browsable(true)]
public int BorderRadius { get; set; }
Property Value
BorderWidth
Gets or sets the width of the border.
[Browsable(true)]
public int BorderWidth { get; set; }
Property Value
ImageKey
Gets or sets the key of the image to display.
[Browsable(true)]
public string ImageKey { get; set; }
Property Value
ImageList
Gets or sets the image list containing the images.
[Browsable(true)]
public ImageList? ImageList { get; set; }
Property Value
IncludeBorder
Gets or sets whether to include a border around the button.
[Browsable(true)]
public bool IncludeBorder { get; set; }
Property Value
Methods
OnMouseDown(MouseEventArgs)
Event handler for the MouseDown event.
protected override void OnMouseDown(MouseEventArgs mevent)
Parameters
mevent
MouseEventArgs- A MouseEventArgs that contains the event data.
OnMouseEnter(EventArgs)
Event handler for the MouseEnter event.
protected override void OnMouseEnter(EventArgs e)
Parameters
e
EventArgs- The event data that contains the event specifics.
OnMouseLeave(EventArgs)
Event handler for the MouseLeave event.
protected override void OnMouseLeave(EventArgs e)
Parameters
e
EventArgs- The event data that contains the event specifics.
OnMouseUp(MouseEventArgs)
Event handler for the MouseUp event.
protected override void OnMouseUp(MouseEventArgs mevent)
Parameters
mevent
MouseEventArgs- The MouseEventArgs that contains the event data.
OnPaint(PaintEventArgs)
Paints the control.
protected override void OnPaint(PaintEventArgs pe)
Parameters
pe
PaintEventArgs- A PaintEventArgs that contains the event data.
OnPaintBackground(PaintEventArgs)
Overrides the OnPaintBackground method to prevent painting the background.
protected override void OnPaintBackground(PaintEventArgs pevent)
Parameters
pevent
PaintEventArgs- A PaintEventArgs that contains the event data.
OnParentBackColorChanged(EventArgs)
Handles the event when the parent control's back color changes.
protected override void OnParentBackColorChanged(EventArgs e)
Parameters
e
EventArgs- The event data that contains the event specifics.