Gtk.Widget.Path Method
Obtains the full path to widget.

Syntax

public void Path (out uint path_length, out string path, out string path_reversed)

Parameters

path_length
Location to store length of the path, or null.
path
Location to store allocated path string, or null.
path_reversed
Location to store allocated reverse path string, or null.

Remarks

The path is simply the name of a widget and all its parents in the container hierarchy, separated by periods. The name of a widget comes from Widget.Name. Paths are used to apply styles to a widget in gtkrc configuration files. Widget names are the type of the widget by default (e.g. "Gtk.Button") or can be set to an application-specific value with Widget.Name.

By setting the name of a widget, you allow users or theme authors to apply styles to that specific widget in their gtkrc file. path_reversed_p fills in the path in reverse order, i.e. starting with widget's name instead of starting with the name of widget's outermost ancestor.

Requirements

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