첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170

TestProject.zip
0.01MB

▶ MainForm.cs

using System;
using System.Drawing;
using System.Windows.Forms;

using Steema.TeeChart.Drawing;
using Steema.TeeChart.Styles;
using Steema.TeeChart.Tools;

namespace TestProject
{
    /// <summary>
    /// 메인 폼
    /// </summary>
    public partial class MainForm : Form
    {
        //////////////////////////////////////////////////////////////////////////////////////////////////// Constructor
        ////////////////////////////////////////////////////////////////////////////////////////// Public

        #region 생성자 - MainForm()

        /// <summary>
        /// 생성자
        /// </summary>
        public MainForm()
        {
            InitializeComponent();

            Text = "Rotate 클래스 : Rotating 이벤트 사용하기";

            this.tChart.Aspect.View3D  = true;
            this.tChart.Panel.Pen      = new ChartPen(Color.Black);
            this.tChart.Legend.Visible = false;

            Tower tower = new Tower(this.tChart.Chart);

            tower.FillSampleValues();

            Rotate rotate = new Rotate(this.tChart.Chart);

            rotate.Speed   = 50;
            rotate.Inertia = 10;

            rotate.Rotating += rotate_Rotating;
        }

        #endregion

        //////////////////////////////////////////////////////////////////////////////////////////////////// Method
        ////////////////////////////////////////////////////////////////////////////////////////// Private

        #region 회전 회전시 처리하기 - rotate_Rotating(sender, e)

        /// <summary>
        /// 회전 회전시 처리하기
        /// </summary>
        /// <param name="sender">이벤트 발생자</param>
        /// <param name="e">이벤트 인자</param>
        private void rotate_Rotating(object sender, EventArgs e)
        {
            this.messageLabel.Text = $"회전 : {this.tChart.Aspect.Rotation}, 고도 : {this.tChart.Aspect.Elevation}";
        }

        #endregion
    }
}
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요