public override void Draw() { DrawX.DrawFilledRect(Area, BackGroundColor); if (HasFocus) { DrawX.DrawShapeOutline(Area, BorderColor); } Font.Draw(DrawString, Position + 1f, TextColor, Alignment.TopLeft, -5); }
public static void Draw(string str, Font font, Point pos, Color color, Alignment alignment = Alignment.Top | Alignment.Left, int depth = 0) { font.Draw(str, pos, color, alignment, depth); }
public static void Draw(string str, Font font, Point pos, Color color, CombinedAlignment alignment = CombinedAlignment.TopLeft, int depth = 0) { font.Draw(str, pos, color, alignment, depth); }