MCPcopy Create free account
hub / github.com/lxn/walk / Index

Method Index

tableviewcolumnlist.go:55–63  ·  view source on GitHub ↗

Index returns the index of the specified TableViewColumn or -1 if it is not found.

(item *TableViewColumn)

Source from the content-addressed store, hash-verified

53// Index returns the index of the specified TableViewColumn or -1 if it is not
54// found.
55func (l *TableViewColumnList) Index(item *TableViewColumn) int {
56 for i, lvi := range l.items {
57 if lvi == item {
58 return i
59 }
60 }
61
62 return -1
63}
64
65// Contains returns whether the specified TableViewColumn is found in the list.
66func (l *TableViewColumnList) Contains(item *TableViewColumn) bool {

Callers 2

ContainsMethod · 0.95
RemoveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected