Back to Devexpress

Axis2D.SetVisibilityInPane(Boolean, XYDiagramPaneBase) Method

corelibraries-devexpress-dot-xtracharts-dot-axis2d-dot-setvisibilityinpane-x28-system-dot-boolean-devexpress-dot-xtracharts-dot-xydiagrampanebase-x29.md

latest2.4 KB
Original Source

Axis2D.SetVisibilityInPane(Boolean, XYDiagramPaneBase) Method

Specifies panes in which an axis should be visible.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public void SetVisibilityInPane(
    bool visible,
    XYDiagramPaneBase pane
)
vb
Public Sub SetVisibilityInPane(
    visible As Boolean,
    pane As XYDiagramPaneBase
)

Parameters

NameTypeDescription
visibleBoolean

true if the axis should be visible in the pane; otherwise, false.

| | pane | XYDiagramPaneBase |

An XYDiagramPaneBase class descendant, that represents a pane object.

|

Remarks

Use the SetVisibilityInPane method to set the Axis2D.VisibilityInPanes property at runtime, because accessing the Axis2D.VisibilityInPanes property at runtime will cause an exception.

Note that if the Axis2D.Visibility property of an axis is disabled, using the SetVisibilityInPane method has no effect, since the Axis2D.VisibilityInPanes property is ignored.

See Also

VisibilityInPanes

Visibility

Axis2D Class

Axis2D Members

DevExpress.XtraCharts Namespace