Table of Contents

Method Add

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

Add(string, object?)

Adds text with data to the end of the items collection.

public virtual int Add(string text, object? data)

Parameters

text string

Item text (title).

data object

Item data.

Returns

int

Remarks

This method creates ListControlItem, assigns its properties with text and data. Created object is added to the items collection.

Add(string, Action)

Adds text with action to the end of the items collection.

public virtual int Add(string text, Action action)

Parameters

text string

Item text (title).

action Action

Action associated with the item.

Returns

int

Remarks

This method creates ListControlItem, assigns its properties with text and action. Created object is added to the collection.