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

Method SetTitle

tableviewcolumn.go:161–176  ·  view source on GitHub ↗

SetTitle sets the (default) text to display in the column header.

(title string)

Source from the content-addressed store, hash-verified

159
160// SetTitle sets the (default) text to display in the column header.
161func (tvc *TableViewColumn) SetTitle(title string) (err error) {
162 if title == tvc.title {
163 return nil
164 }
165
166 old := tvc.title
167 defer func() {
168 if err != nil {
169 tvc.title = old
170 }
171 }()
172
173 tvc.title = title
174
175 return tvc.update()
176}
177
178// TitleOverride returns the (overridden by user) text to display in the column
179// header.

Callers 1

CreateMethod · 0.95

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected