private void HandleTextChanged()
{
lines.Clear();
if(Mode == LabelRenderMode.ManualSizing)
{
lines.Add(CleanText.ToList());
}
else if(Mode == LabelRenderMode.SingleLineAutoSize)
{
Height = 1;
if (MaxWidth.HasValue)
{
Width = Math.Min(MaxWidth.Value, CleanText.Length);
}
else
{
Width = CleanText.Length;
}
lines.Add(CleanText.ToList());
}
else
{
DoSmartWrap();
}
}