protected OnSizeChanged ( |
||
e | An EventArgs that contains the event data | |
return | void |
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
// invalidate the preferred size cache
this.preferredWidth = -1;
this.preferredHeight = -1;
this.textRect.Width = 0;
this.textRect.Height = 0;
}