Hide a part feature via API

Dear SolidWorks Experts,

How can I hide a feature inside a part (.SLDPRT) file, via API?

 

I do not mean hide its icon in Design Tree. Which is what this swFeat.SetUIState example does.


I mean do the same functionality as below shown "Hide" in UI:

 

I tried using the swFeat.Visible property, but sadly it only has get, not set method.
 

I would be grateful for any kind of help. Thank you in advance.