FormattingEnabled Property

ListControl::FormattingEnabled Property


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)

property bool FormattingEnabled {
	bool get();
	void set(bool value);

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
© 2015 Microsoft