ListControl.FormattingEnabled 属性


获取或设置一个值,该值指示是否将格式设置应用于 DisplayMemberListControl 属性。Gets or sets a value indicating whether formatting is applied to the DisplayMember property of the ListControl.

 property bool FormattingEnabled { bool get(); void set(bool value); };
public bool FormattingEnabled { get; set; }
member this.FormattingEnabled : bool with get, set
Public Property FormattingEnabled As Boolean


如果启用 DisplayMember 属性的格式设置,则为 true;否则为 falsetrue if formatting of the DisplayMember property is enabled; otherwise, false. 默认值为 falseThe default is false.


如果将 FormattingEnabled 属性设置为 true,则会为 ListControl 的每个可见成员引发 @no__t 2 事件。Setting the FormattingEnabled property to true causes the Format event to be raised for each visible member of the ListControl.

@no__t,SelectedValueFormattingEnabled 与以下内容相关:SelectedIndex, SelectedValue, and FormattingEnabled are related as follows: