翻譯|使用教程|編輯:王香|2019-01-23 15:48:10.000|閱讀 251 次
概述:TeeChart for.Net包含幾個(gè)可以添加到項(xiàng)目中的附加控件,以增強(qiáng)Charting應(yīng)用程序的運(yùn)行時(shí)功能。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門(mén)軟控件火熱銷(xiāo)售中 >>
相關(guān)鏈接:
TeeChart for.Net包含幾個(gè)可以添加到項(xiàng)目中的附加控件,以增強(qiáng)Charting應(yīng)用程序的運(yùn)行時(shí)功能。
將.e組件的TeeChart添加到Visual Studio .Net ToolBox時(shí),也會(huì)自動(dòng)添加其他控件。
您可以使用Chart屬性將Commander和其他非Chart組件與TChart相關(guān)聯(lián)。
[C#]
commander1.Chart = tChart1;
[VB.Net]
Commander1.Chart = TChart1
ButtonColor顯示顏色編輯器,可以與TeeChart對(duì)象的Color屬性關(guān)聯(lián),以修改其顏色和透明度。
[C#]
private void Form1_Load(object sender, System.EventArgs e) { tChart1.Aspect.View3D = false; line1.FillSampleValues(20); colorBand1.Axis = tChart1.Axes.Left; colorBand1.Start = line1.YValues.Maximum * 0.8; colorBand1.End = line1.YValues.Minimum * 1.2; buttonPen1.Pen = colorBand1.Pen; } private void buttonColor1_Click(object sender, System.EventArgs e) { colorBand1.Color = buttonColor1.Color; }
[VB.Net]
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load TChart1.Aspect.View3D = False Line1.FillSampleValues(20) ColorBand1.Axis = TChart1.Axes.Left ColorBand1.Start = Line1.YValues.Maximum * 0.8 ColorBand1.End = Line1.YValues.Minimum * 1.2 ButtonPen1.Pen = ColorBand1.Pen End Sub Private Sub ButtonColor1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonColor1.Click ColorBand1.Color = ButtonColor1.Color End Sub
ButtonPen顯示邊框編輯器,可以與TeeChart對(duì)象的Pen屬性關(guān)聯(lián),以修改其可見(jiàn)性,顏色,結(jié)尾,破折號(hào)樣式,寬度,樣式和透明度。
[C#]
private void Form1_Load(object sender, System.EventArgs e) { tChart1.Aspect.View3D = false; line1.FillSampleValues(20); colorBand1.Axis = tChart1.Axes.Left; colorBand1.Start = line1.YValues.Maximum * 0.8; colorBand1.End = line1.YValues.Minimum * 1.2; buttonPen1.Pen = colorBand1.Pen; } private void buttonColor1_Click(object sender, System.EventArgs e) { colorBand1.Color = buttonColor1.Color; }
[VB.Net]
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load TChart1.Aspect.View3D = False Line1.FillSampleValues(20) ColorBand1.Axis = TChart1.Axes.Left ColorBand1.Start = Line1.YValues.Maximum * 0.8 ColorBand1.End = Line1.YValues.Minimum * 1.2 ButtonPen1.Pen = ColorBand1.Pen End Sub Private Sub ButtonColor1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonColor1.Click ColorBand1.Color = ButtonColor1.Color End Sub
ChartListBox在運(yùn)行時(shí)顯示圖表中的Series列表。ChartListBox可用于為用戶(hù)提供有限的自定義和顯示/隱藏圖表系列。
Commander欄允許在運(yùn)行時(shí)向用戶(hù)提供導(dǎo)航和參數(shù)更改控制(通過(guò)TeeChart編輯器)。選擇導(dǎo)航按鈕并按下鼠標(biāo)左鍵,拖動(dòng)圖表面板以移動(dòng)圖表。
[C#]
private void Form1_Load(object sender, System.EventArgs e) { editor1.Chart = tChart1; line1.FillSampleValues(20); } private void button1_Click(object sender, System.EventArgs e) { editor1.DefaultTab = Steema.TeeChart.Editors.ChartEditorTabs.Legend; editor1.Title = "My Application Title"; editor1.ShowModal(); }
[VB.Net]
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Editor1.Chart = TChart1 Line1.FillSampleValues(20) End Sub Private Sub ButtonColor1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonColor1.Click Editor1.DefaultTab = Steema.TeeChart.Editors.ChartEditorTabs.Legend Editor1.Title = "My Application Title" Editor1.ShowModal() End Sub
GalleryPanel顯示可自定義的TeeChart系列圖庫(kù)。
購(gòu)買(mǎi)TeeChart Pro AciveX正版授權(quán),請(qǐng)點(diǎn)擊“”喲!
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn