MCPcopy
hub / github.com/lxn/walk / SetTextAlignment

Method SetTextAlignment

label.go:77–83  ·  view source on GitHub ↗
(alignment Alignment1D)

Source from the content-addressed store, hash-verified

75}
76
77func (l *Label) SetTextAlignment(alignment Alignment1D) error {
78 if alignment == AlignDefault {
79 alignment = AlignNear
80 }
81
82 return l.setTextAlignment1D(alignment)
83}
84
85func (l *Label) Text() string {
86 return l.text()

Callers 4

NewLabelWithStyleFunction · 0.45
CreateMethod · 0.45
CreateMethod · 0.45
CreateMethod · 0.45

Calls 1

setTextAlignment1DMethod · 0.80

Tested by

no test coverage detected