/// <summary> /// Adds a <see cref="QuitMenuItem"/> to the end of the <see cref="MenuItemCollection"/>. /// </summary> public void AddQuit() { if (Owner.IsInvalid) { throw new InvalidHandleException(); } QuitMenuItem item = new QuitMenuItem(new SafeControlHandle(Libui.MenuAppendQuitItem(Owner.Handle))); base.Add(item); }