
Class
CheckBox
Usage:
Represents a toggle-able check box.
CheckBox
Properties:
- Check
Boolean – Determines whether the UI Element is in the “checked” state.
CheckBox1.Check = true; CheckBox1.Check = false;
- Label.Visibility
Variable – Determines whether the UI Element has a visible label next to it.
CheckBox1.Label.Visibility = visible;
- Label.Text.ToString
String – Sets the text for the label of the UI Element.
CheckBox1.Label.Text.ToString = "Label of Checkbox1";
- Label.Location
Variable – Determines which side of the UI Element the label will be placed.
CheckBox1.Label.Location = left;
- Enabled
Boolean – Defines whether the UI Element is interact-able or not.
CheckBox1.Enabled = true;
- AutoSize
Boolean – Sets whether the UI Element should be autosized.
CheckBox1.AutoSize = true;
- BorderStyle
Variable – Sets the border style of the UI Element.
CheckBox1.BorderStyle = Single;
- BorderStyle.Colour
Variable – Sets the border colour of the UI Element.
CheckBox1.BorderStyle.Colour = ColourSpace.Red;
CheckBox1.BorderStyle.Colour = new ColourSpace(HEX("#hexcode"));
CheckBox1.BorderStyle.Colour = new ColourSpace(ARGB(RRR,GGG,BBB,ALPHA));
CheckBox1.BorderStyle.Colour = new ColourSpace(ARGB(RRR,GGG,BBB,ALPHA));
//You can use .Color and ColorSpace too!
- BorderStyle.Weight
Variable – Sets the border weight of the UI Element.
CheckBox1.BorderStyle.Weight = 1px;
- BackColour
Variable – Sets the background colour of the UI Element.
CheckBox1.BackColour = ColourSpace.Red;
CheckBox1.BackColour = new ColourSpace(HEX("#hexcode"));
CheckBox1.BackColour = new ColourSpace(ARGB(RRR,GGG,BBB,ALPHA));
CheckBox1.BackColour = new ColourSpace(ARGB(RRR,GGG,BBB,ALPHA));
//You can use .BackColor and ColorSpace too!
- Anchor
Variable – Anchors the UI Element relative to a side or multiple sides of the parent container.
CheckBox1.Anchor = top, left; CheckBox1.Anchor = bottom, top; CheckBox1.Anchor = left;
- Activity
Clause – Creates a new activity when the button is interacted with. By default, the interaction is OnClick.
//OnClick
CheckBox1.Activity(new Activity) { //activities go here }
//OnClick (Defined)
CheckBox1.Activity(new Activity, OnClick) { //activities go here }
//OnHover
CheckBox1.Activity(new Activity, OnHover) { //activities go here }
-
-
- Includes the following actions:
- OnClick
- OnHover
- OnCheck
- OnUnCheck
- Includes the following actions:
-
- Visibility
Variable – Determines whether the UI Element is visible or not.
CheckBox1.Visibility = visible; CheckBox1.Visibility = invisible;
Example:
new ContentPanel = Panel1();
Panel1.Dock = fill;
Panel1.Padding.Left = 3px;
Panel1.Contents
{
new CheckBox = CheckBox1();
CheckBox1.Label.Text.ToString = "Check Me!"
CheckBox1.Check = false;
CheckBox1.Activity(new Activity) {
MessageBox.Show("The CheckBox Has Been Checked!);
}
}

