Check if component is in the specified category.
this |
an Component object |
category |
the specified category to check |
true if the component is in the specified category. |