Accordion for WinForms
展開と折りたたみの動作
展開と折りたたみ > 展開と折りたたみの動作

By default, the Accordion control expands only one page at a time and collapses all the other pages. However, you can change this behavior of the accordion pages to expand multiple pages at a time by setting AllowExpandMany property of the C1Accordion class to true.

The following image shows all the expanded pages in Accordion.

 Expanded WinForms Accordion Page

To expand multiple pages at a time, use the following code.

C#
コードのコピー
//複数のページを展開できるようにします。
 c1Accordion1.AllowExpandMany = true;

Similarly, by default, the Accordion control keeps one page always expanded. However, you can change this behavior of the accordion pages to collapse all the pages by setting AllowCollapseAll property of the C1Accordion class to true.

The following image shows all the collapsed pages in Accordion.

 Collapsed WinForms Accordion Page

To collapse all the pages in Accordion, use the following code.

C#
コードのコピー
//すべてのページを折りたたむできるようにします。
c1Accordion1.AllowCollapseAll = true;