Group: Forum Members
Last Active: 11 Years Ago
Posts: 4,
Visits: 1
|
Hello,
I would like to use shapes provided by your shape factory as a part of my NCompositeShape.
According to the documentation I should be able to use the Compose() method provided by the NShape object to do this.
The following code throws the exception: 'The specified node cannot be inserted at index: 0'
//CODE START
NFlowChartingShapesFactory f = new NFlowChartingShapesFactory(NGraphicsUnit.Pixel, 96); f.DefaultSize = new NSizeF(80, 60);
var zz = f.CreateShape(FlowChartingShapes.Document); zz.Compose(this); //exception thrown on this line. FYI 'this' inherits from NCompositeShape
//CODE END
Any help with this would be greatly appreciated.
Thanks!
|