Exemple #1
0
 public object AddColumn(ListViewColumn col)
 {
     Gtk.TreeViewColumn tc = new Gtk.TreeViewColumn();
     tc.Title         = col.Title;
     tc.Resizable     = col.CanResize;
     tc.Alignment     = col.Alignment.ToGtkAlignment();
     tc.Expand        = col.Expands;
     tc.SortIndicator = col.SortIndicatorVisible;
     tc.SortOrder     = (SortType)col.SortDirection;
     if (col.SortDataField != null)
     {
         tc.SortColumnId = col.SortDataField.Index;
     }
     Widget.AppendColumn(tc);
     MapTitle(col, tc);
     MapColumn(col, tc);
     return(tc);
 }