Table of Contents

Method AddColumn

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

AddColumn(string?, float?, Action?)

Adds a new column with the specified title and width to the control.

ObjectUniqueId AddColumn(string? title, float? width = null, Action? onClick = null)

Parameters

title string

The text to display as the title of the column. This value cannot be null or empty.

width float?

The width of the column, specified as a float value.

onClick Action

The action to be executed when the column is clicked.

Returns

ObjectUniqueId

The unique identifier of the newly added column, represented as an ObjectUniqueId.

Remarks

The method creates a new column with a label and an attached splitter. The label is configured to display both text and an image, and is docked to the left of the layout. The splitter is also docked to the left and is used to separate columns visually.