public void MoveRight(float x) { var old = m_area; m_area.Width = x - m_area.Left; AreaChanged.Execute(Changed.Create(old, m_area)); }
public void MoveBottom(float y) { var old = m_area; m_area.Height = y - m_area.Top; AreaChanged.Execute(Changed.Create(old, m_area)); }
public void MoveLeft(float x) { var old = m_area; m_area.Width = m_area.Right - x; m_area.Location = new PointF(x, m_area.Top); AreaChanged.Execute(Changed.Create(old, m_area)); }
public void MoveTop(float y) { var old = m_area; m_area.Height = m_area.Bottom - y; m_area.Location = new PointF(m_area.Left, y); AreaChanged.Execute(Changed.Create(old, m_area)); }
public void MoveTo(PointF location) { var old = m_area; m_area.X = location.X - m_area.Width / 2.0f; m_area.Y = location.Y - m_area.Height / 2.0f; AreaChanged.Execute(Changed.Create(old, m_area)); }