Gtk.Window.Iconify Method
Asks to iconify (i.e. minimize) the specified window.

Syntax

public void Iconify ()

Remarks

Note that you shouldn't assume the window is definitely iconified afterward, because other entities (e.g. the user or window manager) could deiconify it again, or there may not be a window manager in which case iconification isn't possible, etc. But normally the window will end up iconified. Just do not write code that crashes if not.

You can track iconification via the Widget.WindowStateEvent event on Gtk.Widget.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)