翻譯|使用教程|編輯:董玉霞|2022-05-20 14:13:51.497|閱讀 190 次
概述:本文主要介紹TeeChart for .NET使用教程中關(guān)于圖表顯示屬性的相關(guān)內(nèi)容。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
本文主要介紹TeeChart for .NET使用教程中關(guān)于圖表顯示屬性的相關(guān)內(nèi)容。
圖表顯示特性是那些影響的整體外觀圖。他們包括屬性和方法定義的顏色圖表背景、標(biāo)題和他們的立場,利潤率,邊界和凸凹變化,背景圖像,框架和軸可見,筆顏色和寬度,3 d,墻壁等。 幾乎所有這些屬性可以通過TeeChart編輯器在設(shè)計或運行時,都可以修改這些屬性在運行時以編程方式。整個圖表外觀特征分為這些類別:
傳說內(nèi)容主題專家,將在后面的教程中處理。TeeChart的傳奇頁面編輯器中可以定義外觀方面的傳奇,重要的初始步驟是控制傳奇對齊和可見的屬性,色彩,字體,框架,陰影,等等。
運行:示例使用復(fù)選框控制圖例顯示:
[C#.Net] private void checkBox1_CheckedChanged(object sender, System.EventArgs e) { if(checkBox1.Checked) {tChart1.Legend.Visible = true;} else {tChart1.Legend.Visible = false;} } [VB.Net] Private Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged If CheckBox1.Checked Then TChart1.Legend.Visible = True Else TChart1.Legend.Visible = False End If End Sub
分界線:用于繪制線條的傳說框之間的傳說中的條目,ChartPen屬性應(yīng)用。
[C#.Net] tChart1.Legend.DividingLines.Visible = true; tChart1.Legend.DividingLines.Color = Color.Blue; [VB.Net] TChart1.Legend.DividingLines.Visible = True TChart1.Legend.DividingLines.Color = Color.Blue
設(shè)置默認(rèn)顯示位置或使自定義定位的傳奇,TChart會改變形狀的傳奇適合的位置。如果傳說是將圖的邊(左或右)傳說的內(nèi)容,默認(rèn)情況下,坐一列從上到下。如果以上圖表下面埋藏著傳說傳說內(nèi)容并排放置,默認(rèn)的行為可能被使用調(diào)整圖表選項和/或通過使用自定義定位。看到更多關(guān)于定制的傳奇教程定位的傳奇,例如ResizeChart,調(diào)整圖定義的圖表是否會留下傳說的空間描繪,這允許傳奇被放置在圖表區(qū)域。
[C#.Net] tChart1.Legend.ResizeChart = true; [VB.Net] TChart1.Legend.ResizeChart = True
頂部位置:定義了傳奇盒子從圖表的頂部面板位移。
[C#.Net] tChart1.Legend.CustomPosition = true; tChart1.Legend.Top = 5; [VB.Net] TChart1.Legend.CustomPosition = True TChart1.Legend.Top = 5
傳奇標(biāo)志的大小和格式符號。
顏色框:定義了傳說中的顏色框的寬度。
運行:
[C#.Net] tChart1.Legend.Symbol.WidthUnits = LegendSymbolSize.Pixels; tChart1.Legend.Symbol.Width = 30; [VB.Net] TChart1.Legend.Symbol.WidthUnits = Steema.TeeChart.LegendSymbolSize.Pixels TChart1.Legend.Symbol.Width = 30
包含傳奇的設(shè)置框,例如顏色,框架(ChartPen屬性),模式(ChartBrush屬性)和復(fù)選框輪架和透明。
傳說文本內(nèi)容的文本特征和它的影子。
運行:
[C#.Net] private void button1_Click(object sender, System.EventArgs e) { Legend legend1; legend1 = tChart1.Legend; legend1.Color = Color.Blue; legend1.Font.Name = "Times New Roman"; legend1.Font.Color = Color.Yellow; } [VB.Net] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click With TChart1.Legend .Color = Color.Blue .Font.Name = "Times New Roman" .Font.Color = Color.Yellow End With End Sub
啟用/禁用背景梯度在傳奇框并選擇它的方向和顏色。
屬性顯示的傳奇盒陰影。你可以定義色彩,模式(ChartBrush)大小和透明度。
運行:
[C#.Net] tChart1.Legend.Shadow.Color = Color.Cyan; tChart1.Legend.Shadow.Width = 4; [VB.Net] TChart1.Legend.Shadow.Color = Color.Cyan TChart1.Legend.Shadow.Width = 4
色彩的屬性和內(nèi)在和外在凸凹變化的大小。
本次關(guān)于.NET圖表控件TeeChart for .NET的教程就介紹到這里了,下一篇將介紹面板屬性的相關(guān)內(nèi)容。
如果您想了解TeeChart for .NET價格,歡迎咨詢
TeeChart for .NET 是優(yōu)秀的工業(yè)4.0 WinForm圖表控件,官方獨家授權(quán)漢化,集功能全面、性能穩(wěn)定、價格實惠等優(yōu)勢于一體。
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn