'Declaration Public Property HeaderBorderStyle As Infragistics.Win.UIElementBorderStyle
public Infragistics.Win.UIElementBorderStyle HeaderBorderStyle {get; set;}
This property can be used to adjust the border around the control's header. It can be set to any of the values available in the Infragistics.Win.UIElementBorderStyle enum. Note, if the ViewStyle of the control is set to Office2003 or VisualStudio2005 this property is ignored. For those styles the header border style is always a solid line.
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; }
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