Share via


ModuleListPage.ListView Property

Definition

Gets the list view.

protected public:
 property System::Windows::Forms::ListView ^ ListView { System::Windows::Forms::ListView ^ get(); };
protected internal System.Windows.Forms.ListView ListView { get; }
member this.ListView : System.Windows.Forms.ListView
Protected Friend ReadOnly Property ListView As ListView

Property Value

The ListView object.

Examples

The following example populates the list view with data.

private void GetSettingsCompleted(object o, 
    RunWorkerCompletedEventArgs e) {

    ListView.BeginUpdate();
    try {
        ArrayList settings = (ArrayList)e.Result;

        foreach (PropertyBag setting in settings) {
            ListViewItem item = new ListViewItem();
            item.Text = (string)setting[0];
            item.SubItems.Add((string)setting[1]);
            item.SubItems.Add((string)setting[2]);

            ListView.Items.Add(item);
        }
        //SetSizes();

    } catch (Exception ex) {
        DisplayExceptionString(ex);
    } finally {
        ListView.EndUpdate();
    }
}

Applies to