Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic After reseting ControlPoints, I use the Crossing (Read 2707 times)
Link
Guest


After reseting ControlPoints, I use the Crossing
Jan 19th, 2006 at 8:38am
Print Post  
There is a exception happened.

fc.ArrowCrossings = ArrowCrossings.Arcs;

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: Index was out of range.  Must be non-negative and less than the size of the collection.
   at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
   at MindFusion.FlowChartX.PointCollection.get_Item(Int32 index)
   at MindFusion.FlowChartX.Arrow.x3ebbf318c184de3b()
   at MindFusion.FlowChartX.Arrow.x06e06df617d17cf1(Graphics x4b101060f4767186, Pen x9c79b5ad7b769b12, Brush xe7ebe10fa44d8d49, Pen xfe39089439ac4f68, Boolean x2f9dabff87b2168b, Boolean x86c500fe5a9b7707)
   at MindFusion.FlowChartX.Arrow.Draw(Graphics g, Boolean shadow)
   at MindFusion.FlowChartX.FlowChart.x9f757d58c3f19063(Graphics x4b101060f4767186, ChartObject xa59bff7708de3a18, Boolean x79ee3f6bdf75f984)
   at MindFusion.FlowChartX.FlowChart.xd284222047afc3d7(Graphics x4b101060f4767186, RectangleF xd0772cd9ac472b96, Boolean x979174172ae18db3)
   at MindFusion.FlowChartX.FlowChart.x525e7084c19f09ac(Bitmap xcb82cf45bd90fc15, Rectangle xd1cff1e8f8666dbe, Boolean x979174172ae18db3, Boolean x650cceda2a9df79e)
   at MindFusion.FlowChartX.FlowChart.x525e7084c19f09ac(Bitmap xcb82cf45bd90fc15, Rectangle xd1cff1e8f8666dbe, Boolean x979174172ae18db3)
   at MindFusion.FlowChartX.FlowChart.OnPaint(PaintEventArgs pe)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ActiveXImpl.System.Windows.Forms.IWindowTarget.OnMessage(Me
ssage& m)
   at System.Windows.Forms.ActiveXImpl.System.Windows.Forms.IWindowTarget.OnMessage(Me
ssage& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: After reseting ControlPoints, I use the Crossi
Reply #1 - Jan 19th, 2006 at 8:50am
Print Post  
How did you reset the ControlPoints collection? ControlPoints should contain as many points as specified in the arrow.SegmentCount property + 1 for polyline and cascading links. E.g. if SegmentCount of a polyline arrow is 3, the control points should be 4. Instead of adding or removing points to ControlPoints, better set SegmentCount and then just change the coordinates:

a.Style = ArrowStyle.Polyline;
a.SegmentCount = 3;
a.ContolPoints[0] = new PointF(...);
...
a.ContolPoints[3] = new PointF(...);
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint