C# 用c语言在线型上画圆#

C# 用c语言在线型上画圆#,c#,winforms,graphics,C#,Winforms,Graphics,在我的winform中,有一个lineshape,现在我想在lineshape控件的abve上画一个圆,有人能知道吗?在窗体上的事件中,使用e.Graphics对象上的方法。大概是这样的: // Create location and size of ellipse. int x = 0; int y = 0; int width = 200; int height = 100; // Draw ellipse to screen. e.Graphics.DrawEllipse(Pens.Bl

在我的winform中,有一个lineshape,现在我想在lineshape控件的abve上画一个圆,有人能知道吗?

在窗体上的事件中,使用e.Graphics对象上的方法。大概是这样的:

// Create location and size of ellipse.
int x = 0;
int y = 0;
int width = 200;
int height = 100;

// Draw ellipse to screen.
e.Graphics.DrawEllipse(Pens.Black, x, y, width, height);

如果你想在线形上方画一个圆,我建议你画一条线,而不是使用线形,
画完线后,再画圆。

谢谢,伙计,但我想它会在表格上画线,但我想在线条形状上画线。