'Declaration Public Property HeaderAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase HeaderAppearance {get; set;}
The settings on this Infragistics.Win.AppearanceBase object affect the control's header.
Imports Infragistics.Win Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Display an image in the header. Me.UltraGroupBox1.HeaderAppearance.Image = Bitmap.FromFile("c:\someSmallImage.bmp") ' Center the caption within the area of the header that it is being drawn. ' If you want to shift the location of the caption entirely, ' use the CaptionAlignment property. Me.UltraGroupBox1.HeaderAppearance.TextHAlign = HAlign.Center End Sub
using Infragistics.Win; private void Form1_Load(object sender, System.EventArgs e) { // Display an image in the header. this.ultraGroupBox1.HeaderAppearance.Image = Bitmap.FromFile( "c:\\someLittleImage.bmp" ); // Center the caption within the area of the header that it is being drawn. // If you want to shift the location of the caption entirely, // use the CaptionAlignment property. this.ultraGroupBox1.HeaderAppearance.TextHAlign = HAlign.Center; }
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