ListBox::BorderStyle Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the type of border that is drawn around the ListBox.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property BorderStyle BorderStyle {
	BorderStyle get();
	void set(BorderStyle value);
}

Property Value

Type: System.Windows.Forms::BorderStyle

One of the BorderStyle values. The default is Fixed3D.

Exception Condition
InvalidEnumArgumentException

The value is not one of the BorderStyle values.

.NET Framework
Available since 1.1
Return to top
Show: