Gtk.Container.Add Method
Adds a Gtk.Widget to the Gtk.Container.

Syntax

public void Add (Widget widget)

Parameters

widget
an object of type Gtk.Widget

Remarks

Typically used for simple containers such as Gtk.Window, Gtk.Frame, or Gtk.Button; for more complicated layout containers such as Gtk.Box or Gtk.Table, this function will pick default packing parameters that may not be correct. So consider functions such as Box.Packstart and Table.Attach as an alternative to Container.Add in those cases. A Gtk.Widget may be added to only one Gtk.Container at a time; you can not place the same widget inside two different containers.

Requirements

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