/// <summary> /// print control's text /// </summary> /// <param name = "gc"></param> /// <param name = "rect"></param> /// <param name = "color"></param> /// <param name = "str"></param> internal virtual void printText(Graphics g, Rectangle rect, Color color, String str) { FontDescription font = new FontDescription(Font); ControlRenderer.PrintText(g, rect, color, font, str, MultiLine, ContentAlignment, Enabled, WordWrap, true, false, _rightToLeft); }
/// <summary> /// Draw foreground on the Shape control. /// </summary> /// <param name="graphics"></param> /// <param name="rect"></param> protected virtual void DrawForeground(Graphics graphics, Rectangle rect) { ControlRenderer.PrintText(graphics, rect, ForeColor, FontDescription, Text, Multiline, TextAlign, Enabled, true, true, false, (RightToLeft == RightToLeft.Yes), FontOrientation); }