ListControl.FormattingEnabled 屬性

定義

取得或設定值,指出格式化是否會套用至 DisplayMemberListControl 屬性。

public:
 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,否則為 false。 預設為 false

備註

FormattingEnabled將 屬性設定為 true 會導致 Format 針對 的每個可見成員 ListControl 引發 事件。

SelectedIndexSelectedValueFormattingEnabled 相關,如下所示:

適用於