Version

AutoSize Property

Determines whether the height of the control is automatically adjusted to the size of the font used for the text box.
Syntax
'Declaration
 
Public Overrides Property AutoSize As Boolean
public override bool AutoSize {get; set;}
Remarks
If this property is set to True, the height of the control automatically adjusts to the appropriate height based on the font. When False, the control's height remains the same until explicitly changed. The default is True.
Example
Following code sets the height of the UltraCombo to a desired value by setting the AutoSize to false to prevent default behaviour of UltraCombo to resize itself to the font size.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click

      ' By default the UltraCombo resizes its height to ensure that the text
      ' inside fits. It also prevents you from setting the height to a desired
      ' value. To be able to set the height of the UltraCombo to a desired
      ' value, AutoSize has to be set to false.
      Me.ultraCombo1.AutoSize = False

      ' Now you can set the height to a desired value once the height has been
      ' set.
      Me.ultraCombo1.Height = 50

  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void button3_Click(object sender, System.EventArgs e)
{

	// By default the UltraCombo resizes its height to ensure that the text
	// inside fits. It also prevents you from setting the height to a desired
	// value. To be able to set the height of the UltraCombo to a desired
	// value, AutoSize has to be set to false.
	this.ultraCombo1.AutoSize = false;

	// Now you can set the height to a desired value once the height has been
	// set.
	this.ultraCombo1.Height = 50;

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also