Dundas.SharePoint.Charting.WebParts Send comments on this topic.
Width Property
See Also 
Dundas.Charting.WebControl Namespace > Annotation Class : Width Property


Gets or sets an annotation's width.

Syntax

Visual Basic (Declaration)  
<DefaultValueAttribute()>
<RefreshPropertiesAttribute()>
<TypeConverterAttribute("Dundas.Charting.WebControl.Design.DoubleNanValueConverter, Dundas.SharePoint.Charting.WebParts, Version=2.5.0.0, Culture=neutral, PublicKeyToken=fab2f7696049aaca")>
<CategoryAttribute("Position")>
<DescriptionAttribute("Gets or sets an annotation's width. Set to Double.NaN ("NotSet") to achieve automatic size calculation for annotation text. Can also be negative.")>
Public Overridable Property Width As Double
Visual Basic (Usage) Copy Code
Dim instance As Annotation
Dim value As Double
 
instance.Width = value
 
value = instance.Width
C#  
[DefaultValueAttribute()]
[RefreshPropertiesAttribute()]
[TypeConverterAttribute("Dundas.Charting.WebControl.Design.DoubleNanValueConverter, Dundas.SharePoint.Charting.WebParts, Version=2.5.0.0, Culture=neutral, PublicKeyToken=fab2f7696049aaca")]
[CategoryAttribute("Position")]
[DescriptionAttribute("Gets or sets an annotation's width. Set to Double.NaN ("NotSet") to achieve automatic size calculation for annotation text. Can also be negative.")]
public virtual double Width {get; set;}

Return Value

A Double value that represents an annotation's width.

Remarks

An annotation's width can be a negative value, in which case the annotation orientation is switched.

Annotation width can be in relative chart or axes coordinates. Chart relative coordinates are used by default.

To use axes coordinates anchor an annotation to a data point using the AnchorDataPoint property, or set the annotation axes using the AxisX or AxisY properties and set the SizeAlwaysRelative property to false.

Set the width to Double.NaN ("NotSet") to achieve automatic size calculation for annotations with text. The size will automatically be calculated based on the annotation text and font size.

Requirements

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

See Also