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(IModelBaseChoiceActionItem, Object) Constructor

Creates a new ChoiceActionItem and initializes its Application Model node.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public ChoiceActionItem(
    IModelBaseChoiceActionItem info,
    object data
)

#Parameters

Name Type Description
info IModelBaseChoiceActionItem

An IModelBaseChoiceActionItem object representing the Application Model node, containing information on the created Choice Action Item. This object is assigned to the ChoiceActionItem.Model property.

data Object

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

#Remarks

Use this constructor if you have an Application Model Node that defines the created Choice Action Item. By default, the ActionDesign | Actions | <Action> | ChoiceActionItems | ChoiceActionItem node is used to store information on Choice Action Items.

The specified Application Model node will be used to initialize the ChoiceActionItem.Id, ChoiceActionItem.Caption and ChoiceActionItem.ImageName properties.

If you do not need to associate the created Item with an object, use the constructor with the single info parameter.

See Also