コード例 #1
0
 /// <summary>
 /// Creates a new CheckButton with a Label to the right of it.
 /// </summary>
 /// <param name="label">the text for the check button.</param>
 /// <remarks>
 /// If the text contains an underscore, then the character after the underscore
 /// will indicate the mnemonic for the button.
 /// </remarks>
 public CheckButton(string label)
 {
     if (label.Contains("_"))
     {
         _instance = GtkCheckButton.gtk_check_button_new_with_mnemonic(label);
     }
     else
     {
         _instance = GtkCheckButton.gtk_check_button_new_with_label(label);
     }
 }
コード例 #2
0
 /// <summary>
 /// Creates a new CheckButton.
 /// </summary>
 public CheckButton()
 {
     _instance = GtkCheckButton.gtk_check_button_new();
 }