Visual Basic (Declaration) | |
---|---|
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="Dundas.Charting.WebControl.Design.AnchorPointUITypeEditor, Dundas.SharePoint.Charting.WebParts, Version=2.5.0.0, Culture=neutral, PublicKeyToken=fab2f7696049aaca")> <DefaultValueAttribute()> <DesignerSerializationVisibilityAttribute()> <SerializationVisibilityAttribute()> <DescriptionAttribute("Gets or sets the data point an annotation is anchored to.")> <CategoryAttribute("Anchor")> <TypeConverterAttribute("Dundas.Charting.WebControl.Design.AnchorPointValueConverter, Dundas.SharePoint.Charting.WebParts, Version=2.5.0.0, Culture=neutral, PublicKeyToken=fab2f7696049aaca")> Public Overridable Property AnchorDataPoint As DataPoint |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="Dundas.Charting.WebControl.Design.AnchorPointUITypeEditor, Dundas.SharePoint.Charting.WebParts, Version=2.5.0.0, Culture=neutral, PublicKeyToken=fab2f7696049aaca")] [DefaultValueAttribute()] [DesignerSerializationVisibilityAttribute()] [SerializationVisibilityAttribute()] [DescriptionAttribute("Gets or sets the data point an annotation is anchored to.")] [CategoryAttribute("Anchor")] [TypeConverterAttribute("Dundas.Charting.WebControl.Design.AnchorPointValueConverter, Dundas.SharePoint.Charting.WebParts, Version=2.5.0.0, Culture=neutral, PublicKeyToken=fab2f7696049aaca")] public virtual DataPoint AnchorDataPoint {get; set;} |
Return Value
A DataPoint object an annotation is anchored to.To automatically position the annotation relative to the anchor point make sure it's X and Y properties are set to Double.NaN. The AnchorAlignment property may be used to change the annotation's automatic position alignment to the anchor point. The AnchorOffsetX and AnchorOffsetY properties may be used to add extra spacing.
When using this property make sure the AnchorX and AnchorY properties are set to Double.NaN (they have precedence).
Set this value to null or nothing to disable annotation anchoring to a data point.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family