Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
 /// <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);
 }
Ejemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="src"></param>
 public SymbolLabel(SymbolLabel src) : base(src)
 {
 }