CustomLabel 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示自訂座標軸標籤。
public ref class CustomLabel : System::Web::UI::DataVisualization::Charting::ChartNamedElement, System::Web::UI::DataVisualization::Charting::IChartMapArea
public class CustomLabel : System.Web.UI.DataVisualization.Charting.ChartNamedElement, System.Web.UI.DataVisualization.Charting.IChartMapArea
type CustomLabel = class
inherit ChartNamedElement
interface IChartMapArea
Public Class CustomLabel
Inherits ChartNamedElement
Implements IChartMapArea
- 繼承
- 實作
備註
CustomLabel 物件會儲存在 類別中 CustomLabelsCollection ,這會公開為 CustomLabels 類別的 Axis 屬性。
除非使用 屬性指定自訂標籤,否則會自動產生第一個標籤列的 CustomLabels 軸標籤。 如果您沿著第一個標籤資料列指定自訂標籤,則不會針對整個第一列自動產生座標軸標籤。
只有自訂標籤可用於第二個標籤資料列。
ToPosition和 FromPosition 屬性會決定標籤套用的座標軸範圍。
您可以使用 屬性來顯示自訂座標軸標籤 GridTicks 的格線和/或刻度標記;這個屬性會指定是否要在標籤範圍的中間繪製自訂格線或刻度標記。
建構函式
| CustomLabel() |
建立 CustomLabel 類別的新執行個體。 |
| CustomLabel(Double, Double, String, Int32, LabelMarkStyle) |
使用指定的 |
| CustomLabel(Double, Double, String, Int32, LabelMarkStyle, GridTickTypes) |
使用指定的 |
屬性
| Axis |
取得這個 CustomLabel 物件所屬的座標軸。 |
| ForeColor |
取得或設定自訂標籤的文字色彩。 |
| FromPosition |
取得或設定自訂標籤的開始位置 (以軸座標為單位)。 |
| GridTicks |
取得或設定屬性,指定是否要在標籤中央繪製自訂刻度標記與格線。 |
| Image |
取得或設定自訂標籤影像。 |
| ImageMapAreaAttributes |
取得或設定字串,表示自訂標籤影像的區域屬性。 |
| ImagePostBackValue |
取得或設定可在 Click 事件上處理的回傳值。 |
| ImageTransparentColor |
取得或設定繪製自訂標籤影像時,會以透明色彩取代的色彩。 |
| ImageUrl |
取得或設定標籤影像的 URL 目標。 |
| LabelMark |
取得或設定自訂標籤的標籤標記。 但只適用於第二列中的標籤。 |
| MapAreaAttributes |
取得或設定自訂標籤的對應區域屬性 (如果有的話)。 |
| MarkColor |
取得或設定自訂標籤的標記色彩。 |
| Name |
取得或設定自訂標記的名稱。 |
| PostBackValue |
取得或設定可在 Click 事件上處理的回傳值。 |
| RowIndex |
取得或設定自訂標籤列的索引。 |
| Tag |
取得或設定與這個圖表項目關聯的物件。 (繼承來源 ChartElement) |
| Text |
取得或設定自訂標籤文字。 |
| ToolTip |
取得或設定自訂標籤工具提示文字。 |
| ToPosition |
取得或設定自訂標籤的結束位置 (以軸座標為單位)。 |
| Url |
取得或設定自訂標籤的目標 URL。 |
方法
| Clone() |
傳回已複製的標籤物件。 |
| Dispose() |
釋放 ChartElement 使用的資源。 (繼承來源 ChartElement) |
| Dispose(Boolean) |
釋放 ChartElement 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。 (繼承來源 ChartElement) |
| Equals(Object) |
判斷指定的 Object 是否等於目前的 ChartElement。 (繼承來源 ChartElement) |
| GetHashCode() |
傳回特定型別的雜湊函式。 (繼承來源 ChartElement) |
| GetType() |
取得目前執行個體的 Type。 (繼承來源 Object) |
| MemberwiseClone() |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
| ToString() |
傳回表示目前 Object 的字串。 (繼承來源 ChartElement) |