Version

VerticalTextOrientation Property

Gets/sets the direction that the caption faces when drawn vertically.
Syntax
'Declaration
 
Public Property VerticalTextOrientation As GroupBoxVerticalTextOrientation
public GroupBoxVerticalTextOrientation VerticalTextOrientation {get; set;}
Remarks

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.

Example
This snippet demonstrates how you can make the header of the UltraExpandableGroupBox "rotate" when the control's expanded state changes.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

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;
	}
}
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