Gtk.TreeViewColumn.AddAttribute Method
Adds an attribute mapping to the list in Gtk.TreeViewColumn.

Syntax

public void AddAttribute (CellRenderer cell, string attribute, int column)

Parameters

cell
an object of type Gtk.CellRenderer
attribute
an object of type string
column
an object of type int

Remarks

The column is the column of the model to get a value from, and the attribute is the parameter on cell_renderer to be set from the value. So for example if column 2 of the model contains strings, you could have the "text" attribute of a Gtk.CellRendererText get its values from column 2.

Requirements

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