/// <summary> /// Change viewport orientation. /// </summary> /// <param name="form">The Form to be updated.</param> /// <param name="rotation">Label line rotation.</param> public void SetRotation(AllViewsForm form, ViewportRotation rotation) { using (Transaction t = new Transaction(m_doc, "Change label orientation")) { t.Start(); m_VP.Rotation = rotation; t.Commit(); UpdateViewportProperties(form); } }
private void counterClockWiseRadioButton_CheckedChanged(object sender, EventArgs e) { m_setRotation = ViewportRotation.Counterclockwise; }
private void noneRadioButton_CheckedChanged(object sender, EventArgs e) { m_setRotation = ViewportRotation.None; }