public ResourceIconColumn AddIconColumn() { ResourceIconColumn column = new ResourceIconColumn(); _jetListView.Columns.Add(column); return(column); }
public ResourceTreeView2() : base() { _treeStructureColumn = new TreeStructureColumn(); Columns.Add(_treeStructureColumn); _iconColumn = new ResourceIconColumn(); Columns.Add(_iconColumn); _nameColumn = new JetListViewColumn(); _nameColumn.SizeToContent = true; Columns.Add(_nameColumn); }
public DecoResourceTreeView() : base() { _treeStructureColumn = new TreeStructureColumn(); Columns.Add(_treeStructureColumn); _iconColumn = new ResourceIconColumn(); Columns.Add(_iconColumn); _nameColumn = new RichTextColumn(); _nameColumn.AutoSize = true; Columns.Add(_nameColumn); }
private static void SetupListView(JetListView listView, ItemTextCallback callback, ref CheckBoxColumn chkCol) { listView.ControlPainter = new GdiControlPainter(); listView.NodeCollection.SetItemComparer(null, new TypeByNameComparer()); chkCol = new CheckBoxColumn(); chkCol.HandleAllClicks = true; listView.Columns.Add(chkCol); ResourceIconColumn iconColumn = new ResourceIconColumn(); iconColumn.Width = 20; listView.Columns.Add(iconColumn); JetListViewColumn column = new JetListViewColumn(); column.SizeToContent = true; column.ItemTextCallback = callback; listView.Columns.Add(column); }