📜  如何在c#代码示例中画一个点

📅  最后修改于: 2022-03-11 14:48:51.028000             🧑  作者: Mango

代码示例1
private void Form1_Paint(object sender, PaintEventArgs e)
    {
        using (Pen p = new Pen(Brushes.Black))
        {
            p.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot;
            e.Graphics.DrawLine(p, 10, 10, 11, 10);
        }
    }