Version

WrapText Property (UltraGroupBox)

Gets/sets whether the caption will be wrapped, if necessary.
Syntax
'Declaration
 
Public Property WrapText As Boolean
public bool WrapText {get; set;}
Remarks

Setting this property to true, in effect, enables the caption to be multi-line. Use the Text property to set the caption of the control.

Example
This snippet demonstrates how you can manipulate the border of the control's header.

Imports Infragistics.Win
Imports Infragistics.Win.Misc

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    ' Set the ViewStyle to 'Office2000' because it's default content area border style
    ' is GroupBoxBorderStyle.Rectangular3D, which is very similar to UIElementBorderStyle.Etched.
    Me.UltraGroupBox1.ViewStyle = GroupBoxViewStyle.Office2000

    ' Set the header's border style to Etched.
    Me.UltraGroupBox1.HeaderBorderStyle = UIElementBorderStyle.Etched

    ' Put the header above the rest of the control, just for aesthetic reasons.
    Me.UltraGroupBox1.HeaderPosition = GroupBoxHeaderPosition.TopOutsideBorder

    ' Prevent the caption from being multiline.
    Me.UltraGroupBox1.WrapText = False

End Sub
using Infragistics.Win;
using Infragistics.Win.Misc;

private void Form1_Load(object sender, System.EventArgs e)
{
	// Set the ViewStyle to 'Office2000' because it's default content area border style
	// is GroupBoxBorderStyle.Rectangular3D, which is very similar to UIElementBorderStyle.Etched.
	this.ultraGroupBox1.ViewStyle = GroupBoxViewStyle.Office2000;

	// Set the header's border style to Etched.
	this.ultraGroupBox1.HeaderBorderStyle = UIElementBorderStyle.Etched;

	// Put the header above the rest of the control, just for aesthetic reasons.
	this.ultraGroupBox1.HeaderPosition = GroupBoxHeaderPosition.TopOutsideBorder;

   // Prevent the caption from being multiline.
   this.ultraGroupBox1.WrapText = false;
}
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