.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

ChoiceActionItem(String, Object) constructor

Creates a ChoiceActionItem and initializes its caption and data source.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public ChoiceActionItem(
    string caption,
    object data
)
Public Sub New(
    caption As String,
    data As Object
)

Parameters

Name Type Description
caption String

A string value that represents the created Choice Action Item's caption. This value is assigned to the ChoiceActionItem.Caption property.

data Object

An Object which is associated with the created Choice Action Item. This object is assigned to the ChoiceActionItem.Data property.

Remarks

Usually, you do not need to create Choice Action Items manually. They can be created and added to a ChoiceActionBase at design time via the ChoiceActionItem Collection Editor. To invoke this editor, use the ellipsis button of the Action's ChoiceActionBase.Items property in the Properties window. In this editor, you can add items to a Choice Action Item and specify their settings.

To learn how to create Choice Action items in code, refer to the Add an Action with Option Selection topic.

See Also