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


IListDialog Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Framework)  

IListDialog Interface

Provides access to members that work with a dialog for displaying a list.

Product Availability

Available with ArcGIS Desktop.

Members

Description
Method AddString Adds a string to the list that the dialog will show. These strings will be sorted in alphabetical order.
Read-only property Choice 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.
Method DoModal Displays the list dialog and lets the user select a choice. Returns false if the user hits the cancel button.

CoClasses that implement IListDialog

CoClasses and Classes Description
ListDialog List Dialog object.

Remarks

The list dialog is a dialog used to present a list of options and allows the user to select one of the options.

To get access to the IListDialog interface, create a new ListDialog object.

[C#]

 The following code shows how to get a reference to IListDialog interface.

  IListDialog listDlg=new ListDialogClass();
[Visual Basic .NET]

 The following code shows how to get a reference to IListDialog interface.

  Dim listDlg As IListDialog=New ListDialogClass