Gtk.Image.SetFromStock Method
Creates a Gtk.Image displaying a stock icon.

Syntax

public void SetFromStock (string stock_id, IconSize size)

Parameters

stock_id
an object of type string
size
an object of type Gtk.IconSize

Remarks

Creates a Gtk.Image displaying a stock icon. Sample stock icon names are Stock.Open, Stock.Ok. Sample stock sizes are IconSize.Menu, IconSize.SmallToolbar. If the stock icon name is not known, a "broken image" icon will be displayed instead. You can register your own stock icon names, see IconFactory.AddDefault() and IconFactory.Add(string, IconSet).

Requirements

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