Version

HeaderBorderStyleResolved Property

Gets the Infragistics.Win.UIElementBorderStyle to be used for the header. If the control's HeaderBorderStyle property is not set to Default then that non-default value is returned. If it is set to Default, then the return value is based on the GroupBoxViewStyle being used by the control.
Syntax
'Declaration
 
Public ReadOnly Property HeaderBorderStyleResolved As Infragistics.Win.UIElementBorderStyle
public Infragistics.Win.UIElementBorderStyle HeaderBorderStyleResolved {get;}
Remarks

If the ViewStyle of the control is set to Office2003 or VisualStudio2005 this property will always return 'Solid'. For all other view styles, 'None' is returned unless ViewStyle is set to a non-default value.

Example
This snippet uses the HeaderBorderStyleResolved property to examine the default HeaderBorderStyle settings for each GroupBoxViewStyle.

Imports Infragistics.Win
Imports Infragistics.Win.Misc

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

    ' Make sure that the HeaderBorderStyle is using the default value.
    Me.UltraGroupBox1.HeaderBorderStyle = UIElementBorderStyle.Default

    '
    ' For each GroupBoxViewStyle test what the default HeaderBorderStyle setting is.
    '
    Me.UltraGroupBox1.ViewStyle = GroupBoxViewStyle.Office2000
    Trace.Assert(Me.UltraGroupBox1.HeaderBorderStyleResolved = UIElementBorderStyle.None)

    Me.UltraGroupBox1.ViewStyle = GroupBoxViewStyle.XP
    Trace.Assert(Me.UltraGroupBox1.HeaderBorderStyleResolved = UIElementBorderStyle.None)

    Me.UltraGroupBox1.ViewStyle = GroupBoxViewStyle.Office2003
    Trace.Assert(Me.UltraGroupBox1.HeaderBorderStyleResolved = UIElementBorderStyle.Solid)

    Me.UltraGroupBox1.ViewStyle = GroupBoxViewStyle.VisualStudio2005
    Trace.Assert(Me.UltraGroupBox1.HeaderBorderStyleResolved = UIElementBorderStyle.Solid)

    ' For the VisualStudio2005 and Office2003 viewstyles the UIElementBorderStyle is ALWAYS Solid,
    ' even if you set it to a different value.
    '
    Me.UltraGroupBox1.HeaderBorderStyle = UIElementBorderStyle.Dashed
    Trace.Assert(Me.UltraGroupBox1.HeaderBorderStyleResolved = UIElementBorderStyle.Solid)

    Me.UltraGroupBox1.ViewStyle = GroupBoxViewStyle.Office2003
    Trace.Assert(Me.UltraGroupBox1.HeaderBorderStyleResolved = UIElementBorderStyle.Solid)

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

private void Form1_Load(object sender, System.EventArgs e)
{
	// Make sure that the HeaderBorderStyle is using the default value.
	this.ultraGroupBox1.HeaderBorderStyle = UIElementBorderStyle.Default;

	//
	// For each GroupBoxViewStyle test what the default HeaderBorderStyle setting is.
	//
	this.ultraGroupBox1.ViewStyle = GroupBoxViewStyle.Office2000;
	Trace.Assert( this.ultraGroupBox1.HeaderBorderStyleResolved == UIElementBorderStyle.None );

	this.ultraGroupBox1.ViewStyle = GroupBoxViewStyle.XP;
	Trace.Assert( this.ultraGroupBox1.HeaderBorderStyleResolved == UIElementBorderStyle.None );

	this.ultraGroupBox1.ViewStyle = GroupBoxViewStyle.Office2003;
	Trace.Assert( this.ultraGroupBox1.HeaderBorderStyleResolved == UIElementBorderStyle.Solid );

	this.ultraGroupBox1.ViewStyle = GroupBoxViewStyle.VisualStudio2005;
	Trace.Assert( this.ultraGroupBox1.HeaderBorderStyleResolved == UIElementBorderStyle.Solid );

	// For the VisualStudio2005 and Office2003 viewstyles the UIElementBorderStyle is ALWAYS Solid,
	// even if you set it to a different value.
	//
	this.ultraGroupBox1.HeaderBorderStyle = UIElementBorderStyle.Dashed;
	Trace.Assert( this.ultraGroupBox1.HeaderBorderStyleResolved == UIElementBorderStyle.Solid );

	this.ultraGroupBox1.ViewStyle = GroupBoxViewStyle.Office2003;
	Trace.Assert( this.ultraGroupBox1.HeaderBorderStyleResolved == UIElementBorderStyle.Solid );
}
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