Version

BorderStyle Property (UltraPanel)

Gets or sets the style of border which will be drawn around the UltraPanel.
Syntax
'Declaration
 
Public Property BorderStyle As Infragistics.Win.UIElementBorderStyle
public Infragistics.Win.UIElementBorderStyle BorderStyle {get; set;}

Property Value

The style of border which will be drawn around the UltraPanel.
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptionThe value assigned is not a member of the Infragistics.Win.UIElementBorderStyle enumeration.
Example
The following code demonstartes how to modify the appearance of the UltraPanel.

Imports System.Windows.Forms
Imports Infragistics.Win

' Set the back color of the UltraPanel
Me.UltraPanel1.Appearance.BackColor = Color.Blue

' Set the border style so that a solid border is visible around the control.
Me.UltraPanel1.BorderStyle = UIElementBorderStyle.Solid

' Set the back color of all elements of the scroll bars.
Me.UltraPanel1.ScrollBarLook.Appearance.BackColor = Color.Red

' Turn off themes so the appearance of the scroll bars will always be visible.
Me.UltraPanel1.UseOsThemes = DefaultableBoolean.False

' Show the min and max buttons in each scroll bar.
Me.UltraPanel1.ScrollBarLook.ShowMinMaxButtons = DefaultableBoolean.True
using System.Windows.Forms;
using Infragistics.Win;

// Set the back color of the UltraPanel
this.ultraPanel1.Appearance.BackColor = Color.Blue;

// Set the border style so that a solid border is visible around the control.
this.ultraPanel1.BorderStyle = UIElementBorderStyle.Solid;

// Set the back color of all elements of the scroll bars.
this.ultraPanel1.ScrollBarLook.Appearance.BackColor = Color.Red;

// Turn off themes so the appearance of the scroll bars will always be visible.
this.ultraPanel1.UseOsThemes = DefaultableBoolean.False;

// Show the min and max buttons in each scroll bar.
this.ultraPanel1.ScrollBarLook.ShowMinMaxButtons = DefaultableBoolean.True;
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