DrawMode

DrawMode serializable

System. Windows .Forms (system. windows .forms.dll) enum

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



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net