This documentation is archived and is not being maintained.

Splitter.BorderStyle Property

Gets or sets the style of border for the control.

[Visual Basic]
Public Property BorderStyle As BorderStyle
public BorderStyle BorderStyle {get; set;}
public: __property BorderStyle get_BorderStyle();
public: __property void set_BorderStyle(BorderStyle);
public function get BorderStyle() : BorderStyle;
public function set BorderStyle(BorderStyle);

Property Value

One of the BorderStyle values. The default is BorderStyle.None.


Exception Type Condition
InvalidEnumArgumentException The value of the property is not one of the BorderStyle values.


This property is typically used when the controls the Splitter control is docked to are displayed with a specific border style and it is desirable for the Splitter control to match their display style. For example, if you have a TreeView and a ListView control that the Splitter control will be docked to that you want to display without any borders, you can set the BorderStyle property to BorderStyle.None.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Splitter Class | Splitter Members | System.Windows.Forms Namespace | BorderStyle