ListView.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 border style of the control.

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

Public Property BorderStyle As BorderStyle

Property Value

Type: System.Windows.Forms.BorderStyle

One of the BorderStyle values. The default is Fixed3D.

Exception Condition
InvalidEnumArgumentException

The value specified is not one of the BorderStyle values.

You can use the BorderStyle property to change the border style of the ListView control to match the border style settings of other controls on the form. For example, if none of the other controls on your form displays a border, you can set the BorderStyle property of the ListView control to None to match the other controls.

.NET Framework
Available since 1.1
Return to top
Show: