'Declaration Public Property VerticalTextOrientation As GroupBoxVerticalTextOrientation
public GroupBoxVerticalTextOrientation VerticalTextOrientation {get; set;}
This property dictates whether the text in the header is drawn starting at the top or bottom. The HeaderPosition must be set to a value which makes the header vertical for this property to have any effect. The value of this property affects the meaning of the CaptionAlignment property as well.
Imports Infragistics.Win.Misc Private Sub UltraExpandableGroupBox1_ExpandedStateChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles UltraExpandableGroupBox1.ExpandedStateChanged If Me.UltraExpandableGroupBox1.Expanded Then Me.UltraExpandableGroupBox1.HeaderPosition = GroupBoxHeaderPosition.TopOnBorder Else ' Set the HeaderPosition to RightOnBorder so that the header will be vertical and the caption ' will be facing the correct direction. Alternatively we could have set the control's ' VerticalTextOrientation to TopToBottom and set the HeaderPosition to LeftOnBorder, like so: ' ' Me.UltraExpandableGroupBox1.VerticalTextOrientation = GroupBoxVerticalTextOrientation.TopToBottom ' Me.UltraExpandableGroupBox1.HeaderPosition = GroupBoxHeaderPosition.LeftOnBorder Me.UltraExpandableGroupBox1.HeaderPosition = GroupBoxHeaderPosition.RightOnBorder End If End Sub
using Infragistics.Win.Misc; private void ultraExpandableGroupBox1_ExpandedStateChanged(object sender, System.EventArgs e) { if( this.ultraExpandableGroupBox1.Expanded ) { this.ultraExpandableGroupBox1.HeaderPosition = GroupBoxHeaderPosition.TopOnBorder; } else { // Set the HeaderPosition to RightOnBorder so that the header will be vertical and the caption // will be facing the correct direction. Alternatively we could have set the control's // VerticalTextOrientation to TopToBottom and set the HeaderPosition to LeftOnBorder, like so: // // this.ultraExpandableGroupBox1.VerticalTextOrientation = GroupBoxVerticalTextOrientation.TopToBottom; // this.ultraExpandableGroupBox1.HeaderPosition = GroupBoxHeaderPosition.LeftOnBorder; this.ultraExpandableGroupBox1.HeaderPosition = GroupBoxHeaderPosition.RightOnBorder; } }
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