/// <summary> /// Creates a new label and adds it to the symbol. /// </summary> /// <param name="anchor">Anchor point for the label</param> /// <param name="txtVal">Text value to assign to the label</param> /// <returns>The new label that was created</returns> public Label AddLabel(string txtVal, BoxPosition anchor) { Label lbl = new SymbolLabel(this, txtVal, anchor); lbl.UpdateBounds(); this.Labels.Add(lbl); return(lbl); }
/// <summary> /// Adds a label to the symbol. /// </summary> /// <param name="lbl">Label to add</param> public override void AddLabel(Label lbl) { SymbolLabel symLbl = lbl as SymbolLabel; if (symLbl == null) { throw new EInvalidParameter(); } symLbl.Container = this; symLbl.UpdateBounds(); this.Labels.Add(symLbl); }
/// <summary> /// Adds a label to the symbol. /// </summary> /// <param name="lbl">Label to add</param> public void AddLabel(SymbolLabel lbl) { lbl.Container = this; lbl.UpdateBounds(); this.Labels.Add(lbl); }
/// <summary> /// /// </summary> /// <param name="src"></param> public SymbolLabel(SymbolLabel src) : base(src) { }