Version

ContentAreaAppearance Property

Gets/sets the Infragistics.Win.AppearanceBase object associated with the content area. Note, the Infragistics.Win.FontData of this Appearance object does not affect the font used by the child controls of the UltraGroupBox. You should use the control's Font property instead.
Syntax
'Declaration
 
Public Property ContentAreaAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase ContentAreaAppearance {get; set;}
Remarks
This Appearance object affects the area within the borders where other controls are hosted (i.e. the "content area"). If you want to set the background color for only the area within the borders then use this property.
Example
This snippet shows how to use the ContentAreaAppearance property of the control. The "content area" is the portion of the control where you would put the child controls.

Imports Infragistics.Win
Imports Infragistics.Win.Misc

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

    ' Setup the background colors of the content area.
    Me.UltraGroupBox1.ContentAreaAppearance.BackColor = Color.LightGray
    Me.UltraGroupBox1.ContentAreaAppearance.BackColor2 = Color.DarkGray
    Me.UltraGroupBox1.ContentAreaAppearance.BackGradientStyle = GradientStyle.ForwardDiagonal

    ' Move the header above the content area and center the caption.
    Me.UltraGroupBox1.HeaderPosition = GroupBoxHeaderPosition.TopOutsideBorder
    Me.UltraGroupBox1.CaptionAlignment = GroupBoxCaptionAlignment.Center

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

private void Form1_Load(object sender, System.EventArgs e)
{
	// Setup the background colors of the content area.
	this.ultraGroupBox1.ContentAreaAppearance.BackColor = Color.LightGray;
	this.ultraGroupBox1.ContentAreaAppearance.BackColor2 = Color.DarkGray;
	this.ultraGroupBox1.ContentAreaAppearance.BackGradientStyle = GradientStyle.ForwardDiagonal;

	// Move the header above the content area and center the caption.
	this.ultraGroupBox1.HeaderPosition = GroupBoxHeaderPosition.TopOutsideBorder;
	this.ultraGroupBox1.CaptionAlignment = GroupBoxCaptionAlignment.Center;
}
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