Table of Contents

Method Add

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

Add(object)

Adds an object to the end of the Items collection.

public virtual int Add(object item)

Parameters

item object

The object to be added to the end of the Items collection.

Returns

int

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 Items collection.