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