System.Windows.Forms.ControlHelper.FillToBottom C# (CSharp) Method

FillToBottom() public static method

public static FillToBottom ( this control, int offset ) : void
control this
offset int
return void
        public static void FillToBottom(this Control control, int offset = 0)
        {
            if (control.Parent == null) return;
            control.Height = control.Parent.Height - control.Location.Y - offset;
        }