| 123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // System.Windows.Forms.CheckBox
- //
- // Author:
- // Joel Basson ([email protected])
- //
- //
- using System.Drawing;
- namespace System.Windows.Forms {
- /// <summary>
- /// Represents a Windows CheckBox control.
- ///
- /// </summary>
- public class CheckBox: ButtonBase{
- public CheckBox () : base ()
- {
- }
- internal override Gtk.Widget CreateWidget () {
- Gtk.CheckButton cbox = new Gtk.CheckButton();
- cbox.Add (label.Widget);
- return cbox;
- }
-
- public bool Checked {
- get {
- return ((Gtk.CheckButton)Widget).Active;
- }
- set {
- ((Gtk.CheckButton)Widget).Active = value;
- }
- }
- }
- }
|