語言

Annotation.AnchorDataPoint 屬性

定義

取得或設定註解所錨定的資料點。

public:
 virtual property System::Windows::Forms::DataVisualization::Charting::DataPoint ^ AnchorDataPoint { System::Windows::Forms::DataVisualization::Charting::DataPoint ^ get(); void set(System::Windows::Forms::DataVisualization::Charting::DataPoint ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.AnchorPointValueConverter))]
public virtual System.Windows.Forms.DataVisualization.Charting.DataPoint AnchorDataPoint { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.AnchorPointValueConverter))>]
member this.AnchorDataPoint : System.Windows.Forms.DataVisualization.Charting.DataPoint with get, set
Public Overridable Property AnchorDataPoint As DataPoint

屬性值

標 DataPoint 註所錨定的物件。

屬性

備註

註解會錨定在指定資料點的 X 和 Y 值上,並自動使用與資料點相同的軸座標。

要自動將註解相對於錨點定位,請確保其 X 和 Y 屬性設定為 NaN。 此 AnchorAlignment 特性可用來改變註解與錨點的自動位置對齊。 AnchorOffsetX AnchorOffsetY和屬性可用來增加額外的間距。

使用這個屬性時,請確保 AnchorX 和 AnchorY 屬性設定為 Double.NaN,因為它們具有優先順序。

將此值設為 null 停用註解錨定於資料點。

適用於