Annotation.SetAnchor Method

Definition

Anchors an annotation to the specified data point(s).

Overloads

SetAnchor(DataPoint, DataPoint)

Anchors an annotation to two data points.

SetAnchor(DataPoint)

Anchors an annotation to the specified data point.

SetAnchor(DataPoint, DataPoint)

Anchors an annotation to two data points.

C#
public void SetAnchor(System.Web.UI.DataVisualization.Charting.DataPoint dataPoint1, System.Web.UI.DataVisualization.Charting.DataPoint dataPoint2);

Parameters

dataPoint1
DataPoint

The first anchor DataPoint.

dataPoint2
DataPoint

The second anchor DataPoint.

Remarks

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

Applies to

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

SetAnchor(DataPoint)

Anchors an annotation to the specified data point.

C#
public void SetAnchor(System.Web.UI.DataVisualization.Charting.DataPoint dataPoint);

Parameters

dataPoint
DataPoint

The DataPoint to which the annotation will be anchored.

Applies to

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1