怎样从C#中读取txt中点坐标

2024-12-12 08:38:57
推荐回答(1个)
回答1:

int x = textBox1.Size.Width / 2 + textBox1.Location.X;
int y = textBox1.Size.Height / 2 + textBox1.Location.Y;
textBox1.Text = x.ToString() + "-" + y.ToString();