CheckedListBox.MeasureItem Zdarzenie

Definicja

Występuje po utworzeniu właściciela ListBox i określaniu rozmiarów elementów listy. To zdarzenie nie ma znaczenia dla tej klasy.

public:
 event System::Windows::Forms::MeasureItemEventHandler ^ MeasureItem;
[System.ComponentModel.Browsable(false)]
public event System.Windows.Forms.MeasureItemEventHandler MeasureItem;
[System.ComponentModel.Browsable(false)]
public event System.Windows.Forms.MeasureItemEventHandler? MeasureItem;
[<System.ComponentModel.Browsable(false)>]
member this.MeasureItem : System.Windows.Forms.MeasureItemEventHandler 
Public Custom Event MeasureItem As MeasureItemEventHandler 

Typ zdarzenia

Atrybuty

Uwagi

Można utworzyć procedurę obsługi zdarzeń dla tego zdarzenia, aby określić rozmiar elementu, zanim zostanie on narysowany w DrawItem zdarzeniu. Zdarzenie jest zgłaszane tylko wtedy, gdy właściwość jest ustawiona DrawMode na OwnerDrawVariablewartość .

Maksymalna wysokość ListBox elementu wynosi 255 pikseli.

To zdarzenie nie ma znaczenia dla tej klasy.

Dotyczy