'Declaration Public Overridable ReadOnly Property BorderStyleResolved As GroupBoxBorderStyle
public virtual GroupBoxBorderStyle BorderStyleResolved {get;}
If the control's BorderStyle 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 ViewStyle property.
Imports Infragistics.Win.Misc Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' The following block of code shows what the default border styles are for each GroupBoxViewStyle. Me.UltraGroupBox1.ViewStyle = GroupBoxViewStyle.Office2000 Trace.Assert(Me.UltraGroupBox1.BorderStyleResolved = GroupBoxBorderStyle.Rectangular3D) Me.UltraGroupBox1.ViewStyle = GroupBoxViewStyle.Office2003 Trace.Assert(Me.UltraGroupBox1.BorderStyleResolved = GroupBoxBorderStyle.RectangularSolid) Me.UltraGroupBox1.ViewStyle = GroupBoxViewStyle.VisualStudio2005 Trace.Assert(Me.UltraGroupBox1.BorderStyleResolved = GroupBoxBorderStyle.RectangularSolid) Me.UltraGroupBox1.ViewStyle = GroupBoxViewStyle.XP Trace.Assert(Me.UltraGroupBox1.BorderStyleResolved = GroupBoxBorderStyle.Rounded) End Sub
using Infragistics.Win.Misc; using System.Diagnostics; private void Form1_Load(object sender, System.EventArgs e) { // The following block of code shows what the default border styles are for each GroupBoxViewStyle. this.ultraGroupBox1.ViewStyle = GroupBoxViewStyle.Office2000; Trace.Assert( this.ultraGroupBox1.BorderStyleResolved == GroupBoxBorderStyle.Rectangular3D ); this.ultraGroupBox1.ViewStyle = GroupBoxViewStyle.Office2003; Trace.Assert( this.ultraGroupBox1.BorderStyleResolved == GroupBoxBorderStyle.RectangularSolid ); this.ultraGroupBox1.ViewStyle = GroupBoxViewStyle.VisualStudio2005; Trace.Assert( this.ultraGroupBox1.BorderStyleResolved == GroupBoxBorderStyle.RectangularSolid ); this.ultraGroupBox1.ViewStyle = GroupBoxViewStyle.XP; Trace.Assert( this.ultraGroupBox1.BorderStyleResolved == GroupBoxBorderStyle.Rounded ); }
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