Table of Contents

Class AxisLayout

Namespace
LightningChartLib.WinForms.Charting.Views.ViewXY
Assembly
LightningChart.WinForms.Charting.NET4.dll

Axis layout.

[TypeConverter(typeof(ExpandableObjectConverter))]
public class AxisLayout : ChartNode, IDisposable, IChartNode
Inheritance
AxisLayout
Implements
Inherited Members

Constructors

AxisLayout()

Constructor.

public AxisLayout()

AxisLayout(ViewXY)

Constructor.

public AxisLayout(ViewXY owner)

Parameters

owner ViewXY

Parent.

Properties

AutoAdjustAxisGap

Add/remove extra axis gap between X-axes [PX], if XAxisAutoPlacement is not 'Off'.

public double AutoAdjustAxisGap { get; set; }

Property Value

double

Remarks

If set 0, adjacent XAxes will be rendered as close as possible without overlapping.

AutoAdjustMargins

Calculate margins automatically.

public bool AutoAdjustMargins { get; set; }

Property Value

bool

AutoShrinkSegmentsGap

Automatically shrink segments gap so that all segments can fit in graph.

[Obsolete("This property is read-only and will be removed on next release. Currently all Segments are fitted in graph making this useless property.")]
public bool AutoShrinkSegmentsGap { get; }

Property Value

bool

AxisGridStrips

Axis grid strip.

public XYAxisGridStrips AxisGridStrips { get; set; }

Property Value

XYAxisGridStrips

GridVisibilityOrder

Grid visibility order. Note each axis has individual controls for major and minor grid visibility, color, line style etc.

public GridVisibilityOrder GridVisibilityOrder { get; set; }

Property Value

GridVisibilityOrder

Segments

Y-axis segment list. Used, when axis layout is segmented.

public YAxisSegmentList Segments { get; set; }

Property Value

YAxisSegmentList

SegmentsGap

When stacked or segmented view is defined and there's more than one Y-axis defined, this is the gap in pixels between graph segments.

public int SegmentsGap { get; set; }

Property Value

int

Remarks

If AutoShrinkSegmentsGap is used, the pixel count may be smaller.

XAxisAutoPlacement

X-axes auto placement.

public XAxisAutoPlacement XAxisAutoPlacement { get; set; }

Property Value

XAxisAutoPlacement

XAxisTitleAutoPlacement

Place X-axis title automatically. If enabled overwrites X-axis' Title and Units two properties: VerticalAlign and DistanceToAxis.

public bool XAxisTitleAutoPlacement { get; set; }

Property Value

bool

XGridStripAxisIndex

X-grid strip fill axis index.

public int XGridStripAxisIndex { get; set; }

Property Value

int

YAxesLayout

Y-axis mode, when there's several Y-axes defined

public YAxesLayout YAxesLayout { get; set; }

Property Value

YAxesLayout

YAxisAutoPlacement

Y-axes auto placement.

public YAxisAutoPlacement YAxisAutoPlacement { get; set; }

Property Value

YAxisAutoPlacement

YAxisTitleAutoPlacement

Place Y-axis title automatically. If enabled overwrites Y-axis' Title and Units two properties: HorizontalAlign and DistanceToAxis.

public bool YAxisTitleAutoPlacement { get; set; }

Property Value

bool

YGridStripAxisIndexLayered

Y-grid fill strip axis index. Only applies when YAxesLayout is 'Layered'. In 'Stacked', each axis has an own vertical space and strips applied to that space only.

public int YGridStripAxisIndexLayered { get; set; }

Property Value

int

Methods

Dispose(bool)

Dispose Layout

protected override void Dispose(bool disposing)

Parameters

disposing bool
LightningChartLib.WinForms.Charting.Views.ViewXY.AxisLayout

ToString()

Converts object to string representation.

public override string ToString()

Returns

string

Object as a string.