如何更改矩形的位置?
private void Reset()
{
rndLocation();
face1.Height = 30.0F;
face1.Width = 25.0F;
lost = false;
//change rectangle location
}
答案 0 :(得分:1)
使用Rectangle.Location属性,例如
face1.Location.X = new_X;
face1.Location.Y = new_Y;