Class PressableElement
Represents an elemnt that may be pressed down by the mouse. Mostly used as a button base
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Azos.WinForms.Elements
Assembly: Azos.WinForms.dll
Syntax
public abstract class PressableElement : Element, IDisposable
Constructors
PressableElement(ElementHostControl)
Declaration
public PressableElement(ElementHostControl host)
Parameters
Type | Name | Description |
---|---|---|
ElementHostControl | host |
Properties
Pressed
Indicates whether an element is pressed
Declaration
public bool Pressed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e |
Overrides
OnMouseEnter(EventArgs)
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
Overrides
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
Overrides
OnMouseUp(MouseEventArgs)
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e |
Overrides
Implements
System.IDisposable