Is there a way to close or open a row using MetricsPanelCtrl?

I am trying to make one plugin.

Is there a way to close or open a row using MetricsPanelCtrl?