System.Windows.Forms.ControlHelper.FillToRight C# (CSharp) Méthode

FillToRight() public static méthode

public static FillToRight ( this control, int offset ) : void
control this
offset int
Résultat 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;
        }