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

Method TextSelection

textedit.go:225–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223}
224
225func (te *TextEdit) TextSelection() (start, end int) {
226 te.SendMessage(win.EM_GETSEL, uintptr(unsafe.Pointer(&start)), uintptr(unsafe.Pointer(&end)))
227 return
228}
229
230func (te *TextEdit) SetTextSelection(start, end int) {
231 te.SendMessage(win.EM_SETSEL, uintptr(start), uintptr(end))

Callers 2

AppendTextMethod · 0.95
ContextMenuLocationMethod · 0.95

Calls 1

SendMessageMethod · 0.65

Tested by

no test coverage detected