A: If the component is being used in the IDE the following test will evaluate as true:
csDesigning in ComponentState