Annotation.SetAnchor Annotation.SetAnchor Annotation.SetAnchor Annotation.SetAnchor Method

Definition

Anchors an annotation to one or more data points.

Overloads

SetAnchor(DataPoint) SetAnchor(DataPoint) SetAnchor(DataPoint)

Anchors an annotation to the specified data point.

SetAnchor(DataPoint, DataPoint) SetAnchor(DataPoint, DataPoint) SetAnchor(DataPoint, DataPoint) SetAnchor(DataPoint, DataPoint)

Anchors an annotation to two data points.

SetAnchor(DataPoint) SetAnchor(DataPoint) SetAnchor(DataPoint)

Anchors an annotation to the specified data point.

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

Parameters

dataPoint
DataPoint DataPoint DataPoint DataPoint

The DataPoint to which the annotation will be anchored.

Remarks

Anchors an annotation to the specified data point.

SetAnchor(DataPoint, DataPoint) SetAnchor(DataPoint, DataPoint) SetAnchor(DataPoint, DataPoint) SetAnchor(DataPoint, DataPoint)

Anchors an annotation to two data points.

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)

Parameters

dataPoint1
DataPoint DataPoint DataPoint DataPoint

The first anchor DataPoint.

dataPoint2
DataPoint DataPoint DataPoint DataPoint

The second anchor DataPoint.

Remarks

Anchors an annotation's top-left and bottom-right corners to the specified data points.

Applies to