Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChoiceActionItem(String, String, Object) Constructor

Initializes a new instance of the ChoiceActionItem class.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public ChoiceActionItem(
    string id,
    string caption,
    object data
)

#Parameters

Name Type Description
id String

A String value representing the ID of the created Choice Action Item. This value is assigned to the ChoiceActionItem.Id property.

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