This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IL > IListDialog Interface > IListDialog.Choice Property (ArcObjects .NET 10.5 SDK) |
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;}
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.