How I can fix my method to put the label inside the BPMN form?Because
put the label under form and not inside :(
BPMNNode CreateNodeBPMN(String name, double width, double height, double offsetx, double offsety, string labelText, BPMNShapes type )
{
BPMNNode node = new BPMNNode();
node.Name = name;
node.Width = width;
node.Height = height;
node.OffsetX = offsetx;
node.OffsetY = offsety;
node.FillColor = "#BDBDB";
node.BorderColor = "#BDBDB";
Syncfusion.JavaScript.DataVisualization.Models.Diagram.Label label = new Syncfusion.JavaScript.DataVisualization.Models.Diagram.Label();
label.Text = labelText;
label.Mode = LabelEditMode.View;
label.ReadOnly = true;
label.FontColor = "#000000";
label.Name = name + "_label";
label.FontSize = 12;
label.VerticalAlignment = Syncfusion.JavaScript.DataVisualization.DiagramEnums.VerticalAlignment.Center;
label.HorizontalAlignment = Syncfusion.JavaScript.DataVisualization.DiagramEnums.HorizontalAlignment.Center;
node.Labels.Add(label);
node.Shape = type;
return node;
}