ZForge.Controls.ExplorerBar.TaskItem.OnSizeChanged C# (CSharp) Method

OnSizeChanged() protected method

Raises the SizeChanged event
protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs 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;
        }