Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Annotation.SetAnchor Method (DataPoint, DataPoint)

.NET Framework 4.6 and 4.5

Anchors an annotation to two data points.

Namespace:  System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public void SetAnchor(
	DataPoint dataPoint1,
	DataPoint dataPoint2
)

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

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft