当我双击它时如何编辑绘图矩形(类图)的文本?这是 c# 中的代码我如何绘制类图
g1.DrawRectangle(pen, x1, y1, width, height);
g1.DrawString("class Name", new Font("Arial", 10), new SolidBrush(Color.Black), x1,(y1 +5)); //TextRenderingHint
g1.DrawLine(pen, x1, y1 + 23, x1 + width, y1 + 23);
g1.DrawString("+ attribute :type ", new Font("Arial", 10), new SolidBrush(Color.Black), x1, (y1 + 30));
g1.DrawLine(pen, x1, y1 + 48, x1 + width, y1 + 48);
g1.DrawString("+ operation (args list):return", new Font("Arial", 10), new SolidBrush(Color.Black), x1, (y1 + 55));