Use a Factory Shape as part of an NCompositeShape


Author
Message
Mohamed Salti
Mohamed Salti
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)
Group: Forum Members
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!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search