How to delete a text style?

  1. FAQ
  2. »
  3. Text and Font Questions

A text style can be deleted using:

styleId.safeOpenObject(OdDb::kForWrite)->erase(true);

Note: "Standard" and current text styles cannot be deleted.