FileListBoxArray.MeasureItem 事件

定義

每次需要繪製擁有者繪製 FileListBox 項目,以及確定清單項目大小時,都會發生。

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 的大小。

欲了解更多如何處理事件的資訊,請參閱 「處理與提升事件」。

Note

命名空間中的 Microsoft.VisualBasic.Compatibility.VB6 函式與物件提供給從 Visual Basic 6.0 升級到 Visual Basic 的工具使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。

適用於