728x90
반응형
728x170
▶ 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 = "Selector 클래스 : Selected 이벤트 사용하기";
this.propertyGrid.PropertySort = PropertySort.Alphabetical;
this.propertyGrid.SelectedObject = this.tChart;
this.tChart.Panel.Pen = new ChartPen(Color.Black);
this.tChart.Legend.Visible = false;
Line line = new Line(this.tChart.Chart);
line.FillSampleValues();
Selector selector = new Selector(this.tChart.Chart);
selector.Selected += selector_Selected;
}
#endregion
//////////////////////////////////////////////////////////////////////////////////////////////////// Method
////////////////////////////////////////////////////////////////////////////////////////// Private
#region 셀렉터 선택시 처리하기 - selector_Selected(sender, e)
/// <summary>
/// 셀렉터 선택시 처리하기
/// </summary>
/// <param name="sender">이벤트 발생자</param>
/// <param name="e">이벤트 인자</param>
private void selector_Selected(object sender, EventArgs e)
{
Selector selector = sender as Selector;
this.propertyGrid.SelectedObject = selector.Selection;
}
#endregion
}
}
728x90
반응형
그리드형(광고전용)
'TeeChart > WinForm' 카테고리의 다른 글
[TEECHART/WINFORM] SeriesBandToolEditor 클래스 : 시리즈 밴드 도구 속성 편집하기 (0) | 2022.04.02 |
---|---|
[TEECHART/WINFORM] SubChartTool 클래스 : 하위 차트 사용하기 (0) | 2022.04.02 |
[TEECHART/WINFORM] SeriesStats 클래스 : 시리즈 통계 사용하기 (0) | 2022.04.02 |
[TEECHART/WINFORM] SeriesAnimation 클래스 : 시리즈 애니메이션 사용하기 (0) | 2022.04.02 |
[TEECHART/WINFORM] SeriesBandTool 클래스 : 2개의 라인 시리즈 사이 영역 칠하기 (0) | 2022.04.02 |
[TEECHART/WINFORM] BannerTool 클래스 : 배너 스크롤링하기 (0) | 2022.04.02 |
[TEECHART/WINFORM] Rotate 클래스 : Pen 속성을 사용해 회전시 윤곽선 표시하기 (0) | 2022.04.02 |
[TEECHART/WINFORM] Rotate 클래스 : Rotating 이벤트 사용하기 (0) | 2022.04.02 |
[TEECHART/WINFORM] Rotate 클래스 : 마우스 드래그시 차트 고도와 회전 변경하기 (0) | 2022.04.02 |
[TEECHART/WINFORM] RectangleTool 클래스 : 사각형 크기 변경 및 드래그 처리하기 (0) | 2022.04.02 |
댓글을 달아 주세요