Version

Change the Placement of Tool Text

Toolbar buttons can be displayed with images, text or both. When both are displayed the text by default is to the right of the image. You have the option of changing that at design-time or run-time. The text can be displayed to the right, left, above or below the image by setting the CaptionPlacement property of the Settings object on the Toolbar.

At Design-Time

  1. To configure the WinToolbarsManager™ component, open the design-time customizer by right-clicking on the UltraToolbarsManager element and selecting "Customize."

  2. Click the "Toolbars" tab in the customizer and select a toolbar.

  3. For the Settings property, select the CaptionPlacement property and set it to where you want the text displayed.

At Run-Time

In Visual Basic:

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinToolbars
...
Private Sub ChangethePlacementofToolText_Load(ByVal sender As System.Object, _
  ByVal e As System.EventArgs) Handles MyBase.Load
	Me.UltraToolbarsManager1.Tools("NewFile").SharedProps.DisplayStyle = _
	  ToolDisplayStyle.ImageAndText
	Me.UltraToolbarsManager1.Toolbars(1).Settings.CaptionPlacement = _
	  TextPlacement.BelowImage
End Sub

In C#:

using Infragistics.Win;
using Infragistics.Win.UltraWinToolbars;
...
private void ChangethePlacementofToolText_Load(object sender, System.EventArgs e)
{
	this.ultraToolbarsManager1.Tools["NewFile"].SharedProps.DisplayStyle =
	  ToolDisplayStyle.ImageAndText;
	this.ultraToolbarsManager1.Toolbars[1].Settings.CaptionPlacement =
	  TextPlacement.BelowImage;
}