WinForms中的C#虚拟列表视图 [英] C# Virtual List View in WinForms

查看:200
本文介绍了WinForms中的C#虚拟列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是虚拟列表项及其工作原理的新手.您能解释一下使用方法以及何时使用.它可以与Word文档文本文件,Excel文档一起使用吗?它如何获取信息,是否有任何示例对列表项:详细信息模式"有用?我不知道如何启动该程序,对此不胜感激.

I am new to a virtual list item and how it works. Can you explain the uses and when it is appropriate to use. Can it be used with word document text files, excel document? How does it pull the information and is there any samples that would be useful with a List Item: Detail Mode? I have no clue how to start the program any help is appreciated.

推荐答案

基本上,虚拟列表控件使您可以创建一个列表框,其中包含很多项目,但只将一部分数据加载到内存中.当用户滚动浏览列表并耗尽内存中的项目时,列表控件将加载更多数据:

Basically the virtual list control lets you have a listbox with a very large number of items in it but only load a subset of the data into memory. As the user scrolls through the list and exhausts the items in memory then the list control loads more data:

http://msdn.microsoft.com/en-us/library/ye4z8x58.aspx

.NET版本是通过ListView控件的'VirtualMode'属性实现的.设置为true时,它将充当虚拟列表.您的代码处理"RetrieveVirtualItem"事件,以在虚拟列表的项目用尽时将更多数据加载到列表视图中:

The .NET version is implemented with the 'VirtualMode' property of the ListView control. When this is set to true it will act as a virtual list. Your code handles the "RetrieveVirtualItem" event to load more data into the list view as the virtual list's items are exhausted:

http://msdn.microsoft.com/zh-cn/library/system.windows.forms.listview.virtualmode(v=vs.110).aspx

这篇关于WinForms中的C#虚拟列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆