Back to Devexpress

Annotation.AnchorPoint Property

corelibraries-devexpress-dot-xtracharts-dot-annotation.md

latest3.2 KB
Original Source

Annotation.AnchorPoint Property

Specifies the type of the annotation‘s anchor point.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Layout)]
public AnnotationAnchorPoint AnchorPoint { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Layout)>
Public Property AnchorPoint As AnnotationAnchorPoint

Property Value

TypeDescription
AnnotationAnchorPoint

An AnnotationAnchorPoint class descendant representing the annotation’s anchor point type.

|

Remarks

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.

winforms-chart-accompany-chart-elements-by-text-or-image-annotations/VB/AnnotationsSample/Form1.vb#L26

vb
' 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

Annotation Class

Annotation Members

DevExpress.XtraCharts Namespace