MCPcopy Index your code
hub / github.com/lxn/walk / RemoveAt

Method RemoveAt

tableviewcolumnlist.go:111–123  ·  view source on GitHub ↗

RemoveAt removes the TableViewColumn at position index.

(index int)

Source from the content-addressed store, hash-verified

109
110// RemoveAt removes the TableViewColumn at position index.
111func (l *TableViewColumnList) RemoveAt(index int) error {
112 tvc := l.items[index]
113
114 if err := tvc.destroy(); err != nil {
115 return err
116 }
117
118 tvc.tv = nil
119
120 l.items = append(l.items[:index], l.items[index+1:]...)
121
122 return nil
123}
124
125func (l *TableViewColumnList) unsetColumnsTV() {
126 for _, tvc := range l.items {

Callers 2

ClearMethod · 0.95
RemoveMethod · 0.95

Calls 1

destroyMethod · 0.80

Tested by

no test coverage detected