Remove removes the specified TableViewColumn from the list.
(item *TableViewColumn)
| 99 | |
| 100 | // Remove removes the specified TableViewColumn from the list. |
| 101 | func (l *TableViewColumnList) Remove(item *TableViewColumn) error { |
| 102 | index := l.Index(item) |
| 103 | if index == -1 { |
| 104 | return nil |
| 105 | } |
| 106 | |
| 107 | return l.RemoveAt(index) |
| 108 | } |
| 109 | |
| 110 | // RemoveAt removes the TableViewColumn at position index. |
| 111 | func (l *TableViewColumnList) RemoveAt(index int) error { |