Gtk.IconTheme.LookupIcon Method
Looks up a named icon and returns a structure containing information such as the filename of the icon.

Syntax

public IconInfo LookupIcon (string icon_name, int size, IconLookupFlags flags)

Parameters

icon_name
a string, the name of the icon to lookup
size
a int, desired icon size
flags
a int, flags modifying the behavior of the icon lookup

Returns

a Gtk.IconInfo containing information about the icon, or null if the icon was not found.

Remarks

The icon can then be rendered into a pixbuf using IconInfo.LoadIcon(). (IconTheme.LoadIcon() combines these two steps if all you need is the pixbuf.)

Requirements

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