共用方式為


ListView.ShowGroups 屬性

定義

取得或設定一個值,表示項目是否以群組顯示。

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

屬性值

true分組展示物品;否則,。 false 預設值為 true

備註

任何分配給控制ListView項的群組,只要屬性設定為非 List的值,就會出現。View ListView分組功能讓你在 Windows XP 和 Windows Server 2003 上建立邏輯相關的ListView視覺群組。 要啟用此功能,你的應用程式必須呼叫該 Application.EnableVisualStyles 方法。 如需詳細資訊,請參閱 Groups 屬性 (Property)。

適用於

另請參閱