DevExpressWinForm DiagramControl组织结构图展开所有收缩所有节点 展开所有节点: diagramOrgChartController1.ExpansionDepth = -1; diagramOrgChartController1.Refresh(); 收起所有节点: diagramOrgChartController1.ExpansionDepth = 0; diagramOrgChartController1.Refresh();