Label inside the BPMN form

Hello, is it possible to put the label inside the BPMN form, if so, how should I do it?
Thank you

3 Replies

SG Shyam G Syncfusion Team October 27, 2017 04:09 AM UTC

Hi Maysa, 
 
Please refer to the code example below in which we have shown how to create a label for the BPMN node. 
 
Code example: 
           DiagramProperties model = new DiagramProperties(); 
           BPMNNode node = new BPMNNode(); 
            node.Name = "BPMN";          
            node.Width = 200; 
            node.Height = 200; 
            node.OffsetX = 200; 
            node.OffsetY = 200; 
            //Sets the type of BPMN shape 
            node.Shape = BPMNShapes.Event; 
            //Sets type of the Event 
            node.Event = BPMNEvents.End; 
            Label label = new Label(); 
            //set an label for BPMN shape 
            label.Text = "BPMN Node"; 
            //position the label using offset property 
            label.Offset = new DiagramPoint() {X=0.2f, Y = 0.5f }; 
            node.Labels.Add(label); 
            //add node into model nodes collection 
      model.Nodes.Add(node); 
 
Please refer to the help documentation for more details 
 
 
Regards, 
Shyam G 



MA maysa October 27, 2017 10:59 AM UTC

Good Morning!

Thank you for the help! After your answer I was able to make the adjustment quickly.

Regards,

Maysa Xavier 




SG Shyam G Syncfusion Team October 30, 2017 09:52 AM UTC

Hi Maysa, 
We are happy to hear that your problem is resolved. 
Regards, 
Shyam G 


Loader.
Up arrow icon