/// <summary> /// /// </summary> /// <param name="graphics"></param> public override void Render(PKGraphics graphics) { PKPoint absPosition = GetAbsPosition(); this.RenderBackground(graphics); if (this.TextFont == null) { this.TextFont = new PKFont("Tahoma", 10, false); } graphics.WriteText( this.Value, this.TextBrush == null ? PKBrushes.BlackBrush : this.TextBrush, this.TextFont == null?new PKFont("Tahoma", 10, false): this.TextFont, this.Align, absPosition.X + this.Padding, absPosition.Y, this.Width - this.Padding * 2, this.Height); base.Render(graphics); }
public override void Render(PKGraphics graphics) { PKPoint absPosition = GetAbsPosition(); base.Render(graphics); graphics.FillRectangle(PKBrushes.GrayWhiteBrush, absPosition.X + this.Padding, absPosition.Y + 2, this.Width - this.Padding * 2, 20); graphics.DrawRectangle( PKPens.DarkGrayPen, absPosition.X + this.Padding, absPosition.Y + 2, this.Width - this.Padding * 2, 20); graphics.DrawRectangle( PKPens.DarkGrayPen, absPosition.X - this.Padding + this.Width - 18, absPosition.Y + 2, 18, 20); graphics.WriteText("[]", PKBrushes.BlackBrush, this.TextFont, PKHAlign.Center, absPosition.X - this.Padding + this.Width - 18, absPosition.Y + 2, 18, 20); }