/// <summary> /// Executes the operation to set the rotation angle of labels in /// the map, given the two orientation points. /// </summary> /// <param name="point1">The first position</param> /// <param name="point2">The second position</param> void SetLabelRotation(IPosition point1, IPosition point2) { TextRotationOperation op = null; try { op = new TextRotationOperation(); op.Execute(point1, point2); FinishCommand(); } catch (Exception ex) { MessageBox.Show(ex.StackTrace, ex.Message); AbortCommand(); } }