FileListBoxArray.MeasureItem 事件
定义
每次当必须描述一个所有者描述的 FileListBox 项,并且当列表项的大小已确定时就会发生。Occurs every time an owner-drawn FileListBox item has to be drawn and when the sizes of the list items are determined.
public:
event System::Windows::Forms::MeasureItemEventHandler ^ MeasureItem;
public event System.Windows.Forms.MeasureItemEventHandler MeasureItem;
member this.MeasureItem : System.Windows.Forms.MeasureItemEventHandler
Public Custom Event MeasureItem As MeasureItemEventHandler
Public Event MeasureItem As MeasureItemEventHandler
事件类型
注解
您可以为此事件创建事件处理程序,以便在事件中绘制项之前指定项的大小 DrawItem 。You can create an event handler for this event to specify the size an item is made before it is drawn in the DrawItem event.
有关如何处理事件的详细信息,请参阅 处理和引发事件。For more information about how to handle events, see Handling and Raising Events.
备注
Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.