Author Topic: Highlighting diagram elements  (Read 2340 times)

Jonas

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Highlighting diagram elements
« on: July 19, 2009, 11:21:30 pm »
Hi,

I want to write a small add-in for EA which should be able of highlighting single elements of the currently opened diagram(s), but I don't know how.

Until now a can only access the DiagramObject(s) of the current diagram, but I don't find any properties like "ForegroundColor", "BackgroundColor" or something similar.

Does anyone know if this is actually possible (and maybee how)?

Thanks,
Jonas

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Highlighting diagram elements
« Reply #1 on: July 20, 2009, 03:16:31 am »
There's a SetStyle method on the DiagramObject which allows some of the things you want:

http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/diagramobjects.html#settingthestyle