/// <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);
            }
        }
Exemple #2
0
 private void counterClockWiseRadioButton_CheckedChanged(object sender, EventArgs e)
 {
     m_setRotation = ViewportRotation.Counterclockwise;
 }
Exemple #3
0
 private void noneRadioButton_CheckedChanged(object sender, EventArgs e)
 {
     m_setRotation = ViewportRotation.None;
 }