Help component Form

I am working with and I use the custom layout in the Form. But I do not know how to setSizeFull for Form. Anyone can help me

form.setSizeFull();
theFormLayout.setSizeFull();