Clear removes all TableViewColumns from the list.
()
| 41 | |
| 42 | // Clear removes all TableViewColumns from the list. |
| 43 | func (l *TableViewColumnList) Clear() error { |
| 44 | for _ = range l.items { |
| 45 | if err := l.RemoveAt(0); err != nil { |
| 46 | return err |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | return nil |
| 51 | } |
| 52 | |
| 53 | // Index returns the index of the specified TableViewColumn or -1 if it is not |
| 54 | // found. |