.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

ChartLineOptions.Visible Property

Gets or sets a value indicating whether the specific lines are visible on a chart.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v19.2.Core.dll

Declaration

bool Visible { get; set; }
Property Visible As Boolean
bool Visible { get; set; }
Property Visible As Boolean
bool Visible { get; set; }
Property Visible As Boolean

Property Value

Type Description
Boolean

true, to display the lines; otherwise, false.

Property Value

Type Description
Boolean

true, to display the lines; otherwise, false.

Property Value

Type Description
Boolean

true, to display the lines; otherwise, false.

Remarks

Use the Visible property to display or hide the major (Axis.MajorGridlines) and minor (Axis.MinorGridlines) gridlines, leader lines (DataLabelOptions.LeaderLines), drop lines (ChartView.DropLines), high-low lines (ChartView.HighLowLines), or series lines (ChartView.SeriesLines) on a chart.

Examples

The example below demonstrates how to create a simple line chart and display major gridlines for the category axis and the minor gridlines for the value axis by setting the ChartLineOptions.Visible property to true.

Dim worksheet As Worksheet = workbook.Worksheets("chartTask5")
workbook.Worksheets.ActiveWorksheet = worksheet

' Create a chart and specify its location.
Dim chart As Chart = worksheet.Charts.Add(ChartType.Line, worksheet("B2:C8"))
chart.TopLeftCell = worksheet.Cells("F2")
chart.BottomRightCell = worksheet.Cells("L15")

' Display the major gridlines of the category axis.
chart.PrimaryAxes(0).MajorGridlines.Visible = True
' Display the minor gridlines of the value axis.
chart.PrimaryAxes(1).MinorGridlines.Visible = True

' Hide the legend.
chart.Legend.Visible = False
See Also