Version

UIElement Property (UltraGroupBox)

Gets the main UIElement for the control.
Syntax
'Declaration
 
Public ReadOnly Property UIElement As UltraGroupBoxUIElement
public UltraGroupBoxUIElement UIElement {get;}
Remarks

This property provides access to the main Infragistics.Win.UIElement of the control. This element can be used as a starting point for traversal of the control's element hierarchy.

Example
This snippet demonstrates how to use the UIElement property of the control.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    ' Display the size and number of elements in the control's main UIElement.
    Dim messageText As String = "The size of the control's main element is: {0}, and it contains {1} element(s)"
    Dim messageTextFormatted As String = String.Format(messageText, Me.UltraGroupBox1.UIElement.Rect.Size.ToString(), Me.UltraGroupBox1.UIElement.ChildElements.Count)

    MessageBox.Show(messageTextFormatted)

End Sub
private void button1_Click(object sender, System.EventArgs e)
{
	// Display the size and number of elements in the control's main UIElement.
	string messageText			= "The size of the control's main element is: {0}, and it contains {1} element(s)";
	string messageTextFormatted = string.Format(
		messageText, 
		this.ultraGroupBox1.UIElement.Rect.Size.ToString(),
		this.ultraGroupBox1.UIElement.ChildElements.Count );

	MessageBox.Show( messageTextFormatted );
}
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