Book a Demo

Author Topic: New border element questions  (Read 4521 times)

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
New border element questions
« on: September 12, 2016, 12:24:29 am »
Hi,
I have created a new border element questions as follows:

EA.DiagramObject diagBorderElement = (EA.DiagramObject)diagram.DiagramObjects.AddNew("l=" + leftPos + ";r=" + rightPos + ";t=" + topPos + ";b=" + bottomPos + ";", "");
diagBorderElement.ElementID=borderElement.ElementID;

It was created fine on the diagram but I have 2 questions about it:
1. How can I change the borderElement color (to Red) for example

2. I have noticed that this element creation, the partitions (swimlanes) in the diagram disappear.
Does anybody know how to create the new element without harming those swimlanes?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: New border element questions
« Reply #1 on: September 12, 2016, 02:13:02 am »
1) From V12.1 on you can use diagramObject.BorderColor.
2) I doubt that element creation will remove swim lanes from diagrams. If you can reproduce that, you should report a bug.

q.