Dundas Chart for Windows Forms
Spacing Property
See Also  Example Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > AxisScaleBreakStyle Class : Spacing Property


Specifies the spacing gap between the lines of the scale break (as a percentage of y-axis).
Axis scale break spacing.

Syntax

Visual Basic (Declaration)  
Public Property Spacing As Double
Visual Basic (Usage) Copy Code
Dim instance As AxisScaleBreakStyle
Dim value As Double
 
instance.Spacing = value
 
value = instance.Spacing
C#  
public double Spacing {get; set;}

Return Value

A double value representing the spacing gap between the lines of the scale break.

Example

This property is measured as a percentage of the y-axis.
C# Copy Code
using Dundas.Charting.WinControl;
...

// Enable scale breaks.
chart1.ChartAreas["Default"].AxisY.ScaleBreakStyle.Enabled = true;

// Set the spacing gap between the lines of the scale break (as a percentage of y-axis).
chart1.ChartAreas["Default"].AxisY.ScaleBreakStyle.Spacing = 2;
Visual Basic Copy Code
Imports Dundas.Charting.WinControl
...

' Enable scale breaks.
chart1.ChartAreas("Default").AxisY.ScaleBreakStyle.Enabled = True

' Set the spacing gap between the lines of the scale break (as a percentage of y-axis).
chart1.ChartAreas("Default").AxisY.ScaleBreakStyle.Spacing = 2

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

© 2009 All Rights Reserved.