Class Check

Definition

Namespace:
ElmSharp
Assembly:
ElmSharp.dll

The Check is a widget that allows for toggling a value between true and false.

C#
Copy
public class Check : Layout, IAccessibleObject
Inheritance
Implements

Constructors

View Source

Check(EvasObject)

Creates and initializes a new instance of the Check class.

Declaration
C#
Copy
public Check(EvasObject parent)
Parameters
Type Name Description
EvasObject parent

The EvasObject to which the new check will be attached as a child.

Properties

View Source

IsChecked

Sets or gets whether the given check is checked or not.

Declaration
C#
Copy
public bool IsChecked { get; set; }
Property Value
Type Description
bool
Remarks

When an object is checked, the value will be set to true. Conversely, will be set to false.

Methods

View Source

CreateHandle(EvasObject)

Creates a widget handle.

Declaration
C#
Copy
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type Name Description
EvasObject parent

Parent EvasObject.

Returns
Type Description
System.IntPtr

Handle IntPtr.

Overrides

Events

View Source

StateChanged

StateChanged will be triggered when the IsChecked in the check is changed.

Declaration
C#
Copy
public event EventHandler<CheckStateChangedEventArgs> StateChanged
Event Type
Type Description
System.EventHandler<TEventArgs><CheckStateChangedEventArgs>

Implements

Extension Methods