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

Method SetTextAlignment

numberlabel.go:73–79  ·  view source on GitHub ↗
(alignment Alignment1D)

Source from the content-addressed store, hash-verified

71}
72
73func (nl *NumberLabel) SetTextAlignment(alignment Alignment1D) error {
74 if alignment == AlignDefault {
75 alignment = AlignFar
76 }
77
78 return nl.setTextAlignment1D(alignment)
79}
80
81func (nl *NumberLabel) Decimals() int {
82 return nl.decimals

Callers 2

CreateMethod · 0.95
NewNumberLabelFunction · 0.45

Calls 1

setTextAlignment1DMethod · 0.80

Tested by

no test coverage detected