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

FillToRight() public static method

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