コード例 #1
0
ファイル: TextRotationUI.cs プロジェクト: 15831944/backsight
        /// <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();
            }
        }
コード例 #2
0
        /// <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();
            }
        }