ArrayList ArrayListView = new ArrayList();
ListView CurrentListView;
CurrentListView = (ListView)ArrayListView[0];
int CurrentSelect = tabControl1.SelectedIndex;
CurrentListView = (ListView)ArrayListView[CurrentSelect];窗体里有一个tabcontrol,每个tabpage里有个listview。这段代码什么意思。可以怎样写的吗
ListView CurrentListView;
CurrentListView = (ListView)ArrayListView[0];
int CurrentSelect = tabControl1.SelectedIndex;
CurrentListView = (ListView)ArrayListView[CurrentSelect];窗体里有一个tabcontrol,每个tabpage里有个listview。这段代码什么意思。可以怎样写的吗
ListView CurrentListView; // 用来表示当前ListView
CurrentListView = (ListView)ArrayListView[0]; // 装入ArrayListView[0],貌似这句多余
int CurrentSelect = tabControl1.SelectedIndex; // 取得选中的 tab 的 Index
CurrentListView = (ListView)ArrayListView[CurrentSelect]; // 取得当前的 ListView
获取ArrayListView中选中的 tab 的 listview
ListView CurrentListView; // 用来表示当前ListView(视图)
--ListView 控件可使用四种不同视图显示项目。通过此控件,可将项目组成带有或不带有列标头的列,并显示伴随的图标和文本CurrentListView = (ListView)ArrayListView[0]; // 装入ArrayListView[0],貌似这句多余
int CurrentSelect = tabControl1.SelectedIndex; // 取得选中的 tab 的 Index索引值
CurrentListView = (ListView)ArrayListView[CurrentSelect]; // 取得当前的 ListView