Classes are not restricted to be applied to a single type of control. They can be applied to any type. Of course, depending on the type of control, some class properties may be meaningless, and therefore they will have no effect on it.
In the example, it will make sense to assign the class H1_Negative to any control containing text, without requiring it to be a Text Block control. For example, it could be a control of Variable or Attribute type, or it could also be applied to control labels, column headings, and so on.
Thus, if in another Panel you use a Variable for the text on the hero image instead of the Text Block, or an Attribute (since its content will be searched for in the database), there is no difference: the Attribute/Variable control is associated with the same class, H1_Negative, as the Text Block.
Since GeneXus 17 Upgrade 6.