In reply to:
> Hello Paul, > > Could you try setting the AutoRoute property of all arrows to true - then > they should change their orientation when modified so the last segments > point away from the nodes. > > Sincerely, > Stoyan
After creating each arrow I set AutoRoute to true. I then get an exception in PointCollection.this[int index].get:
return (PointF)List[index];
(watch details and callback at end...)
This is called from Arrow.getCrossings():
... for (int test = 0; test < arrow.SegmentCount; ++test) { PointF testPt1 = arrow.Points[test]; PointF testPt2 = arrow.Points[test+1]; ...
----------------
Watch details:
-
List {MindFusion.FlowChartX.PointCollection} System.Collections.IList {MindFusion.FlowChartX.PointCollection} -
[MindFusion.FlowChartX.PointCollection] {MindFusion.FlowChartX.PointCollection} MindFusion.FlowChartX.PointCollection -
base {MindFusion.FlowChartX.PointCollection} System.Collections.CollectionBase {MindFusion.FlowChartX.PointCollection}
Capacity 4 int
Count 3 int -
InnerList Count = 3 System.Collections.ArrayList +
[0] {X = 71.02884 Y = 367.486328} object {System.Drawing.PointF} +
[1] {X = 95.875 Y = 367.486328} object {System.Drawing.PointF} +
[2] {X = 95.875 Y = 381.115143} object {System.Drawing.PointF} +
Raw View
-
List {MindFusion.FlowChartX.PointCollection} System.Collections.IList {MindFusion.FlowChartX.PointCollection} +
[MindFusion.FlowChartX.PointCollection] {MindFusion.FlowChartX.PointCollection} MindFusion.FlowChartX.PointCollection
IsFixedSize false bool
IsReadOnly false bool -
Non-Public members
+
[MindFusion.FlowChartX.PointCollection] {MindFusion.FlowChartX.PointCollection} MindFusion.FlowChartX.PointCollection +
list Count = 3 System.Collections.ArrayList
System.Collections.ICollection.IsSynchronized false bool
System.Collections.ICollection.SyncRoot {object} object
System.Collections.IList.IsFixedSize false bool
System.Collections.IList.IsReadOnly false bool
IsFixedSize false bool
IsReadOnly false bool
index 3 int
----------------
Callback details:
FlowChart.NET.dll!MindFusion.FlowChartX.PointCollection.this[int].get(int index = 3) Line 703 C# FlowChart.NET.dll!MindFusion.FlowChartX.Arrow.getCrossings() Line 5055 + 0x23 bytes C# FlowChart.NET.dll!MindFusion.FlowChartX.Arrow.drawArrowSegments(System.Drawing.G raphics g = {System.Drawing.Graphics}, System.Drawing.Pen p = {Color = {Color [Black]}}, System.Drawing.Brush b = {Color = {Color [A=255, R=0, G=0, B=0]}}, System.Drawing.Pen pHeads = {Color = {Color [Black]}}, bool shadow = false, bool custom = true) Line 1332 + 0x8 bytes C# FlowChart.NET.dll!MindFusion.FlowChartX.Arrow.Draw(System.Drawing.Graphics g = {System.Drawing.Graphics}, bool shadow = false) Line 1802 + 0x18 bytes C# FlowChart.NET.dll!MindFusion.FlowChartX.FlowChart.drawObject(System.Drawing.Grap hics g = {System.Drawing.Graphics}, MindFusion.FlowChartX.ChartObject obj = {MindFusion.FlowChartX.Arrow}, bool conn = false) Line 2107 + 0xb bytes C# FlowChart.NET.dll!MindFusion.FlowChartX.FlowChart.drawItems(System.Drawing.Graph ics g = {System.Drawing.Graphics}, System.Drawing.RectangleF clipRect = {X = 61.96051 Y = 350.002319 Width = 47.4470749 Height = 35.7797546}, bool modfBackBuf = false) Line 2178 + 0x10 bytes C# FlowChart.NET.dll!MindFusion.FlowChartX.FlowChart.drawFlowChart(System.Drawing.B itmap bm = {System.Drawing.Bitmap}, System.Drawing.Rectangle clip = {X = 204 Y = 108 Width = 122 Height = 92}, bool modfBackBuf = false, bool transforms = true) Line 1925 + 0x29 bytes C#
|