Export (0) Print
Expand All

Splitter.BorderStyle Property

Gets or sets the style of border for the control.

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

Property Value

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

Exceptions

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

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft