Name

DrawMode

Synopsis

This enumeration is used by Control objects that support owner drawing. If you set their DrawMode properties to OwnerDrawFixed, you will raise DrawItem events to paint each item in the Control. The height of each item is fixed to the value in the ItemHeight property. On the other hand, if you set it to OwnerDrawVariable, the framework will also raise MeasureItem events that allow you to individually specify the height of each item in the list. See DrawItemEventArgs for more information on the owner draw painting process.


public enum DrawMode {

   Normal = 0,

   OwnerDrawFixed = 1,

   OwnerDrawVariable = 2

}

Hierarchy

System.Object System.ValueType System.Enum(System.IComparabl, System.IFormattable, System.IConvertible) DrawMode

Returned By

ComboBox.DrawMode, ListBox.DrawMode

Passed To

ComboBox.DrawMode, ListBox.DrawMode

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.