Xceed Docking Windows for WinForms v2.3 Documentation
BorderColor Property (ToolWindow)


Xceed.DockingWindows Namespace > ToolWindow Class : BorderColor Property
Gets or sets the color of the ToolWindow's border.
Syntax
'Declaration
 
<DescriptionAttribute("The color of the ToolWindow's border.")>

<CategoryAttribute("Appearance")>

Public Property BorderColor As Color
'Usage
 
Dim instance As ToolWindow

Dim value As Color

 

instance.BorderColor = value

 

value = instance.BorderColor
[Description("The color of the ToolWindow's border.")]

[Category("Appearance")]

public Color BorderColor {get; set;}

Property Value

A System.Drawing.Color structure representing the color of the ToolWindow's border. By default, DefaultBorderColor.
Remarks

If the BorderColor property is set to System.Drawing.Color.Transparent or System.Drawing.Color.Empty then the ToolWindow will not have a border.

The width of the ToolWindow's border is fixed at 1 pixel. In order to increase the width of the border, add a panel to the ToolWindow and set its Dock property to System.Windows.Forms.DockStyle.Fill. Next, set the ToolWindow's DockPadding property to the desired border width and change its background color to the desired border color.

To reset the value of the BorderColor property to its default value, DefaultBorderColor, the ResetBorderColor method must be called.

Requirements

Target Platforms: 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

Reference

ToolWindow Class
ToolWindow Members