示例#1
0
 /// <summary>
 /// Adds the label to the given Node.
 /// </summary>
 /// <param name="pathNode">Node</param>
 private static void AddLabel(Syncfusion.Windows.Forms.Diagram.PathNode pathNode)
 {
     Syncfusion.Windows.Forms.Diagram.Label label = new Syncfusion.Windows.Forms.Diagram.Label(pathNode, pathNode.Name);
     label.FontColorStyle.Color = Color.Black;
     label.FontStyle.Family     = "Segoe UI";
     pathNode.Labels.Add(label);
 }
示例#2
0
 /// <summary>
 /// Adds the label to the given node
 /// </summary>
 /// <param name="rect">Node</param>
 /// <param name="labelText">Label's Text</param>
 /// <param name="position">Label's position</param>
 private static void AddLabel(Syncfusion.Windows.Forms.Diagram.PathNode rect, string labelText, Position position)
 {
     Syncfusion.Windows.Forms.Diagram.Label label = new Syncfusion.Windows.Forms.Diagram.Label(rect, labelText);
     label.Position             = position;
     label.UpdatePosition       = true;
     label.FontStyle.Family     = "Segoe UI";
     label.FontColorStyle.Color = Color.Black;
     label.FontStyle.Size       = 9;
     rect.Labels.Add(label);
 }