Class ScaleBreak
- Namespace
- LightningChartLib.WinForms.Charting.Axes
- Assembly
- LightningChart.WinForms.Charting.NET4.dll
Exclude range for excluding defined values from axis values. Also contains Gap, which tells in DIPs, how large the range will be on window. The gap can be rendered by diagonal line or fill or just remain empty.
[TypeConverter(typeof(ExpandableObjectConverter))]
public class ScaleBreak : ChartNode, IChartNode, IDisposable, IComparable<ScaleBreak>
- Inheritance
-
ScaleBreak
- Implements
- Inherited Members
Constructors
ScaleBreak()
Constructor for Form designer's list editor.
public ScaleBreak()
ScaleBreak(AxisBase)
Constructor.
public ScaleBreak(AxisBase owner)
Parameters
ownerAxisBaseParent.
ScaleBreak(AxisBase, double, double, float)
Constructor.
public ScaleBreak(AxisBase owner, double begin, double end, float gap)
Parameters
Properties
Begin
Range begin value.
public double Begin { get; set; }
Property Value
DiagonalLineSpacing
Gap of lines in pixels. Applied, if fill style is line.
public double DiagonalLineSpacing { get; set; }
Property Value
Enabled
Enabled.
public bool Enabled { get; set; }
Property Value
End
Range end value.
public double End { get; set; }
Property Value
Fill
Gap Fill. Applicable if Style is set to Fill.
public Fill Fill { get; set; }
Property Value
Gap
Gap of range in pixels.
public double Gap { get; set; }
Property Value
LineStyle
Gap line style, if style is diagonal line.
public LineStyle LineStyle { get; set; }
Property Value
Style
Gap style.
public AxisRangeGapStyle Style { get; set; }
Property Value
Methods
CompareTo(ScaleBreak)
IComparison implementation based on Begin value. If Begin values are same, order is determined by End values.
public int CompareTo(ScaleBreak other)
Parameters
otherScaleBreakOther instance to compare to.
Returns
- int
-1 if this is before other, 0 if equal (Begins are same), 1 of this is after other.
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingboolTrue if managed resources should be disposed, otherwise false.
Overlap(ScaleBreak)
Tells if another ScaleBreaks overlaps this.
public bool Overlap(ScaleBreak excludeRange)
Parameters
excludeRangeScaleBreakCompared ScaleBreaks.
Returns
- bool
True, if overlaps, false otherwise.
ToString()
Convert class description to string.
public override string ToString()
Returns
- string
String.