【发布时间】:2015-03-10 11:22:45
【问题描述】:
我已经使用 OnPaint 事件绘制了一个圆形 Rectangle:
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
GraphicsPath path = RoundedRectangle.Create(5, 5, 20, 20);
e.Graphics.DrawPath(Pens.Black, path);
}
我想在那个矩形上画一个控件。例如:TextBox
问题:有没有办法知道 GraphicsPath 的 Location 或 Point 来设置我对它的控制?
【问题讨论】: