Dundas Chart for ASP.NET
LabelsAutoFit Property
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > Axis Class : LabelsAutoFit Property


Gets or sets a value that determines if axis labels are automatically fitted.


Set Auto Labels formating

Syntax

Visual Basic (Declaration)  
Public Property LabelsAutoFit As Boolean
Visual Basic (Usage) Copy Code
Dim instance As Axis
Dim value As Boolean
 
instance.LabelsAutoFit = value
 
value = instance.LabelsAutoFit
C#  
public bool LabelsAutoFit {get; set;}

Return Value

If true labels are auto-fitted, if false they are not. Defaults to true.

Remarks

If this property is true then axis labels are drawn so that they do not overlap one another as defined by the rules specified by the LabelsAutoFitStyle. The font size is automatically calculated, as is the angle at which they are drawn. In addition, labels may be offset to prevent overlapping.

If this property is false then the label's Font.Size, FontAngle and OffsetLabels properties determine label font size, label angles and whether or not labels are offset.

Setting any one of the label style properties mentioned above will result in the LabelsAutoFit property being set to false. Also, setting LabelsAutoFit to true will result in those properties being reset to their default.

Note that all other Label properties not mentioned previously will be used, regardless of the LabelsAutoFit property value (e.g. Font.Color).

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

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.