TableLayoutColumnStyleCollection.Remove(ColumnStyle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the first occurrence of a specific ColumnStyle from the TableLayoutColumnStyleCollection.
public:
void Remove(System::Windows::Forms::ColumnStyle ^ columnStyle);
public void Remove (System.Windows.Forms.ColumnStyle columnStyle);
member this.Remove : System.Windows.Forms.ColumnStyle -> unit
Public Sub Remove (columnStyle As ColumnStyle)
Parameters
- columnStyle
- ColumnStyle
The ColumnStyle to remove from the TableLayoutColumnStyleCollection. The value can be null
.
Remarks
The Remove method reapplies the table layout to all the controls in the current TableLayoutPanel container.
In collections of contiguous elements, such as the TableLayoutColumnStyleCollection class, the elements that follow the deletion point move up to occupy the vacated spot. The indexes of the elements that are moved are also updated.