corelibraries-devexpress-dot-xtracharts-dot-annotation.md
Specifies the type of the annotation‘s anchor point.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
[XtraChartsLocalizableCategory(XtraChartsCategory.Layout)]
public AnnotationAnchorPoint AnchorPoint { get; set; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Layout)>
Public Property AnchorPoint As AnnotationAnchorPoint
| Type | Description |
|---|---|
| AnnotationAnchorPoint |
An AnnotationAnchorPoint class descendant representing the annotation’s anchor point type.
|
Depending on the AnchorPoint property value (ChartAnchorPoint, PaneAnchorPoint, or SeriesPointAnchorPoint), an annotation is added the corresponding collection of this element, returned by the ChartControl.Annotations, XYDiagramPaneBase.Annotations, or SeriesPoint.Annotations property, respectively.
For more information, refer to Annotations.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AnchorPoint property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
' This adds the annotation to the series point's Annotations collection.
chartControl1.AnnotationRepository(0).AnchorPoint = New SeriesPointAnchorPoint(chartControl1.Series(0).Points(2))
' Now, create an image annotation, and add it to the chart's collection.
See Also