ListControl.FormattingEnabled 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 a value indicating whether formatting is applied to the DisplayMember property of the ListControl.

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

member FormattingEnabled : bool with get, set

Property Value

Type: System.Boolean

true if formatting of the DisplayMember property is enabled; otherwise, false. The default is false.

Setting the FormattingEnabled property to true causes the Format event to be raised for each visible member of the ListControl.

SelectedIndex, SelectedValue, and FormattingEnabled are related as follows:

.NET Framework
Available since 2.0
Return to top
Show: