Annotation.AnchorDataPoint Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the data point to which an annotation is anchored.
public:
virtual property System::Windows::Forms::DataVisualization::Charting::DataPoint ^ AnchorDataPoint { System::Windows::Forms::DataVisualization::Charting::DataPoint ^ get(); void set(System::Windows::Forms::DataVisualization::Charting::DataPoint ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.AnchorPointValueConverter))]
public virtual System.Windows.Forms.DataVisualization.Charting.DataPoint AnchorDataPoint { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.AnchorPointValueConverter))>]
member this.AnchorDataPoint : System.Windows.Forms.DataVisualization.Charting.DataPoint with get, set
Public Overridable Property AnchorDataPoint As DataPoint
A DataPoint object to which an annotation is anchored.
- Attributes
The annotation is anchored to the X and Y values of the specified data point, and automatically uses the same axes coordinates as the data point.
To automatically position the annotation relative to the anchor point, make sure its X and Y properties are set to NaN. The AnchorAlignment property can be used to change the automatic position alignment of the annotation to the anchor point. The AnchorOffsetX and AnchorOffsetY properties may be used to add extra spacing.
When you use this property, make sure the AnchorX and AnchorY properties are set to Double.NaN, as they have precedence.
Set this value to null
to disable annotation anchoring to a data point.
Produkt | Versiounen |
---|---|
.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 |
Feedback zu .NET
.NET ass en Open-Source-Projet. Wielt e Link, fir Feedback ze ginn: