/// <summary> /// Creates a new link label and adds it to the link. /// </summary> /// <param name="txtVal">Value to assign to the label</param> /// <param name="pctAlongLine">Orientation value</param> /// <returns>The new label created</returns> public Label AddLabel(string txtVal, int pctAlongLine) { Label label = new LinkLabel(this, txtVal, pctAlongLine); label.UpdateBounds(); this.Labels.Add(label); return(label); }
/// <summary> /// Adds a link label to the link. /// </summary> /// <param name="label">Label to add</param> public void AddLabel(LinkLabel label) { label.Container = this; label.UpdateBounds(); this.Labels.Add(label); }