Version

GroupSpacing Property

Returns/sets the amount of vertical space between UltraExplorerBarGroups, in pixels. Only applies to control Style ‘0 – ExplorerBar’.
Syntax
'Declaration
 
Public Property GroupSpacing As Integer
public int GroupSpacing {get; set;}
Remarks

Note: When an UltraExplorerBarGroup's header has an image assigned to it, and that image is vertically larger that the header, the top of the image will exceed the bounds of the header. If the GroupSpacing property is set to a value that is less than the amount of space required to prevent that image from overlapping the group above it, a value that will provide enough space to prevent the overlapping is used.

Example
The following code shows how to manipulate the properties that relate to Group columns and spacing.

Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar


	Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button5.Click

		' Set the style of the control to ExplorerBar and setup columns.  Set the number of 
		' columns based on the width of the control.  Allow a minimum of 100 pixels for each
		' column.
		Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.ExplorerBar
		Me.ultraExplorerBar1.ColumnCount = Math.Max(1, Me.ultraExplorerBar1.Width / 100)


		' Set ColumnSpacing (i.e., the horizontal spacing between columns) to 6 pixels.
		Me.ultraExplorerBar1.ColumnSpacing = 6


		' Set the GroupSpacing (i.e., the vertical spacing between groups) to 10 pixels
		Me.ultraExplorerBar1.GroupSpacing = 10


		' Setup the first group so that it spans all columns.
		If (Me.ultraExplorerBar1.Groups.Count > 0) Then
			Me.ultraExplorerBar1.Groups(0).ColumnsSpanned = Me.ultraExplorerBar1.ColumnCount
		End If

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinExplorerBar;


		private void button5_Click(object sender, System.EventArgs e)
		{
			// Set the style of the control to ExplorerBar and setup columns.  Set the number of 
			// columns based on the width of the control.  Allow a minimum of 100 pixels for each
			// column.
			this.ultraExplorerBar1.Style			= UltraExplorerBarStyle.ExplorerBar;
			this.ultraExplorerBar1.ColumnCount		= Math.Max(1, this.ultraExplorerBar1.Width / 100);


			// Set ColumnSpacing (i.e., the horizontal spacing between columns) to 6 pixels.
			this.ultraExplorerBar1.ColumnSpacing	= 6;


			// Set the GroupSpacing (i.e., the vertical spacing between groups) to 10 pixels
			this.ultraExplorerBar1.GroupSpacing		= 10;


			// Setup the first group so that it spans all columns.
			if (this.ultraExplorerBar1.Groups.Count > 0)
				this.ultraExplorerBar1.Groups[0].ColumnsSpanned = this.ultraExplorerBar1.ColumnCount;
		}
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