Gtk.UIManager.GetWidget Method

Looks up a widget by following a path.

Syntax

public Widget GetWidget (string path)

Parameters

path
a string

Returns

a Gtk.Widget found by following the path, or null if no widget was found.

Remarks

The path consists of the names specified in the XML description of the UI. separated by '/'. Elements which do not have a name or action attribute in the XML (e.g. <popup>) can be addressed by their XML element name (e.g. "popup"). The root element ("/ui") can be omitted in the path.
Note:

The widget found by following a path that ends in a <menu> element is the menuitem to which the menu is attached, not the menu itself.

Requirements

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