C# – Setting Padding – why it says padding.all is not variable

cpaddingvariableswinforms

I do not understand why there is Control.padding.all which is int and according to hint there is set as well as get but I cannot set it (Control.Padding.All=5)? I would be grateful for explanation. Thanks!

Best Answer

Control.Margin = new Padding(5)