Forum Discussion

simranjit's avatar
simranjit
Binge Watcher
9 years ago

How to get the current width of Label ?

I have create the Label in XML. 

<Label
  id="testLabel"
  font="font:MediumBoldSystemFont"
  text = "Application Development Made Easy!"
  horizAlign = "left"
  vertAlign = "center"
  translation="[10,10]" />

How to get the width of label during run time, if text of this label is changed randomly.
Thanks.