private void CreateTextElement( IElementFactory factory, string text, SizeF textSize, RectangleF bounds) { factory.CreateTextElement(text, Symbology1D.GetTextRect(textSize, bounds, this.TextAlign, this.LineAlign)); }
protected virtual RectangleF GetTextRect(RectangleF bounds) { if (!this.ShowText) { return(RectangleF.Empty); } return(Symbology1D.GetTextRect(this.textSize, bounds, this.TextAlign, this.LineAlign)); }