Can I close a "Viewpart", progmmatically ?

There are lots of ViewParts there, "Comments", "Advanced Display Filter" and etc..
-Including my own ViewParts too.


Is there any way to close it ? Programmatically ??
-Including my own ViewParts too.


Its close button is soooo small, it's quite hard to go there and close it.
-floating is.. not an option at all.

Thanks.



Typo
[edited by: Kelly Edward at 3:14 AM (GMT 1) on 29 Mar 2022]