Hi Maira,
Thanks for using syncfusion products.
We suggest you to create an new instance of “Palette” class
and use the palette’s “AppendChild” method to add the any type of Nodes and
Connectors. Also you can use the Palette’s “Save” method to save the palette in
xml format.
Please refer the below code snippet.
[C#]
//create an new instance of Palette.
Palette customShape = new Palette("Custom
Shapes");
//create an new instance of a node.
Node node1 = new Node();
// set the node shape
node1.Shape = Shapes.Path;
//set the custom path data
node1.PathData = "M
-1165.85 707.454 L -1165.85 349.454 L -836.855 349.454"; //this is an example data
//append the node to palette.
customshape.AppendChild(node1);
//save the palette to xml file.
customShape.Save(@"C:\CustomShapes.xml");
We have created the simple sample to achieve your
requirement and the same can be downloaded from the below link.
Sample
Please let us know if any
concerns.
Regards,
Senthilkumar.M.