Property Dock
Dock
Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent.
public virtual DockStyle Dock { get; set; }
Property Value
Remarks
Currently this property is used only when control is placed inside the LayoutPanel.