CheckBox Constructor (String, Anchor, NullableVector2, NullableVector2, Boolean) |
Create a new checkbox entity.
Namespace:
GeonBit.UI.Entities
Assembly:
GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public CheckBox(
string text,
Anchor anchor = Anchor.Auto,
Nullable<Vector2> size = null,
Nullable<Vector2> offset = null,
bool isChecked = false
)
Parameters
- text
- Type: SystemString
CheckBox label text. - anchor (Optional)
- Type: GeonBit.UI.EntitiesAnchor
Position anchor. - size (Optional)
- Type: SystemNullableVector2
CheckBox size. - offset (Optional)
- Type: SystemNullableVector2
Offset from anchor position. - isChecked (Optional)
- Type: SystemBoolean
If true, this checkbox will be created as 'checked'.
See Also