Method InsertColumnCore
InsertColumnCore(int, string?, float?, Action?)
Inserts a new column at the specified index with the given title, width, and optional click action.
SpeedButton InsertColumnCore(int index, string? title, float? width = null, Action? onClick = null)
Parameters
indexintThe zero-based index at which the column should be inserted. Must be within the valid range of existing columns.
titlestringThe title of the column. Can be null or empty if no title is required.
widthfloat?The optional width of the column, specified as a float. If null, a default width is used.
onClickActionAn optional action to be executed when the column is clicked. Can be null if no action is required.
Returns
- SpeedButton
A SpeedButton representing the inserted column.
Remarks
This method allows dynamic insertion of columns into a collection. Ensure that the
index is within the valid range to avoid exceptions.