ComboBox.IntegralHeight 属性
获取或设置一个值,该值指示控件是否应调整大小以避免只显示项的局部。
**命名空间:**System.Windows.Forms
**程序集:**System.Windows.Forms(在 system.windows.forms.dll 中)
语法
声明
<LocalizableAttribute(True)> _
Public Property IntegralHeight As Boolean
用法
Dim instance As ComboBox
Dim value As Boolean
value = instance.IntegralHeight
instance.IntegralHeight = value
[LocalizableAttribute(true)]
public bool IntegralHeight { get; set; }
[LocalizableAttribute(true)]
public:
property bool IntegralHeight {
bool get ();
void set (bool value);
}
/** @property */
public boolean get_IntegralHeight ()
/** @property */
public void set_IntegralHeight (boolean value)
public function get IntegralHeight () : boolean
public function set IntegralHeight (value : boolean)
属性值
如果列表部分只能包含完整的项,则为 true;否则为 false。默认为 true。
备注
当此属性设置为 true 时,控件将自动调整大小以确保项已全部显示。如果根据窗体的空间要求,要维持 ComboBox 的原始大小,则将此属性设置为 false。如果 ComboBox 未包含任何项,则该属性无效。
设置 DropDownHeight 属性会将 IntegralHeight 属性重置为 false。
提示
如果 DrawMode 属性设置为 OwnerDrawVariable,则此属性无效。
平台
Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition
.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求。
版本信息
.NET Framework
受以下版本支持:2.0、1.1、1.0