Version

Padding Property (UltraCombo)

Returns or sets the amount of padding around the text, in pixels.
Syntax
'Declaration
 
Public Shadows Property Padding As Size
public new Size Padding {get; set;}
Remarks
Padding is the space between the text and the border of the control.
Example
Following code sets the horizontal padding to 2 and vertical padding to 4. Padding is the space between the text and the borders of the UltraCombo.

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

  Private Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click

      ' Set the padding which specifies the space between the border of the
      ' UltraCombo's edit portion and the text inside of it.
      Me.ultraCombo1.Padding = New Size(2, 4)

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

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

	// Set the padding which specifies the space between the border of the
	// UltraCombo's edit portion and the text inside of it.
	this.ultraCombo1.Padding = new Size( 2, 4 );

}
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