/// <summary> /// Creates a new toggle button with a text label. /// </summary> /// <param name="label">a string containing the message to be placed in the toggle button.</param> /// <remarks> /// If the text contains an underscore, then the character after the underscore /// will indicate the mnemonic for the button. /// </remarks> public ToggleButton(string label) { if (label.Contains("_")) { _instance = GtkToggleButton.gtk_toggle_button_new_with_mnemonic(label); } else { _instance = GtkToggleButton.gtk_toggle_button_new_with_label(label); } }
/// <summary> /// Creates a new toggle button. /// </summary> public ToggleButton() { _instance = GtkToggleButton.gtk_toggle_button_new(); }