共用方式為


Annotation.SetAnchor 方法

定義

將註釋錨定至一或多個資料點。

多載

SetAnchor(DataPoint)

將註釋錨定到指定的資料點。

SetAnchor(DataPoint, DataPoint)

將註釋錨定至兩個資料點。

SetAnchor(DataPoint)

將註釋錨定到指定的資料點。

public:
 void SetAnchor(System::Windows::Forms::DataVisualization::Charting::DataPoint ^ dataPoint);
public void SetAnchor (System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint);
member this.SetAnchor : System.Windows.Forms.DataVisualization.Charting.DataPoint -> unit
Public Sub SetAnchor (dataPoint As DataPoint)

參數

dataPoint
DataPoint

要在其中錨定註釋的 DataPoint

備註

將註釋錨定到指定的資料點。

適用於

SetAnchor(DataPoint, DataPoint)

將註釋錨定至兩個資料點。

public:
 void SetAnchor(System::Windows::Forms::DataVisualization::Charting::DataPoint ^ dataPoint1, System::Windows::Forms::DataVisualization::Charting::DataPoint ^ dataPoint2);
public void SetAnchor (System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1, System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2);
member this.SetAnchor : System.Windows.Forms.DataVisualization.Charting.DataPoint * System.Windows.Forms.DataVisualization.Charting.DataPoint -> unit
Public Sub SetAnchor (dataPoint1 As DataPoint, dataPoint2 As DataPoint)

參數

dataPoint1
DataPoint

第一個錨點 DataPoint

dataPoint2
DataPoint

第二個錨點 DataPoint

備註

將批註左上角和右下角錨定至指定的資料點。

適用於