共用方式為


ListControl.FormattingEnabled 屬性

定義

取得或設定一個值,指示是否對 的ListControl屬性套用DisplayMember格式化。

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

屬性值

true若啟用屬性格式DisplayMember化;否則, false 預設值為 false

備註

將屬性設 FormattingEnabled 為 會 trueFormat 每個可見成員 ListControl的事件發生。

SelectedIndexSelectedValue, , FormattingEnabled 的關係如下:

適用於