This document is archived and information here might be outdated.  Recommended version.


IListDialog.Choice Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IL > IListDialog Interface > IListDialog.Choice Property
ArcGIS Developer Help

IListDialog.Choice Property

The index of the string chosen (use after calling DoModal). Strings are numbered starting at 0 in the order that they were added, not the order that they appear in the dialog.

[Visual Basic .NET]
Public ReadOnly Property Choice As Integer
[C#]
public int Choice {get;}

Product Availability

Available with ArcGIS Desktop.

Remarks

The Choice property returns the index of the selected item in the list. The items are numbered starting at 0 in the order that they were added, not the order that they appear in the dialog.

See Also

IListDialog Interface