Get Enable/Disable value from component

Hi,

It may be an easy question but I cannot figurre it out how to find is a component is enabled or diabled by using c#. Any ideas?

if (!this.Enable) return;

I tried with this by it does not exist

GH_Component Class

The idea behind that is that I developed a custom component and I want it to stop when the component is disable but I cannot figure it out how to do that

Thanks in advance :slight_smile:

What you want is GH_Component.Locked. When Locked is true, component is disabled.