Table of Contents

Method InsertColumnCore

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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

index int

The zero-based index at which the column should be inserted. Must be within the valid range of existing columns.

title string

The title of the column. Can be null or empty if no title is required.

width float?

The optional width of the column, specified as a float. If null, a default width is used.

onClick Action

An 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.