The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

ChartSheet.IsProtected Property

Gets a value indicating whether the chart sheet is protected.

Namespace: DevExpress.Spreadsheet

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

Declaration

bool IsProtected { get; }
ReadOnly Property IsProtected As Boolean
bool IsProtected { get; }
ReadOnly Property IsProtected As Boolean
bool IsProtected { get; }
ReadOnly Property IsProtected As Boolean

Property Value

Type Description
Boolean

true, if the chart sheet is protected; otherwise, false.

Property Value

Type Description
Boolean

true, if the chart sheet is protected; otherwise, false.

Property Value

Type Description
Boolean

true, if the chart sheet is protected; otherwise, false.

Remarks

Use the IsProtected property to check whether the chart sheet is already protected before applying protection with the ChartSheet.Protect method.

Examples

Dim worksheet As Worksheet = workbook.Worksheets("chartTask1")

' Create a chart sheet containing a pie chart.
Dim chartSheet As ChartSheet = workbook.ChartSheets.Add(ChartType.Pie, worksheet("B2:C7"))

' Protect the chart sheet. Prevent end-users from making changes to chart elements.
If Not chartSheet.IsProtected Then
    chartSheet.Protect("password", ChartSheetProtection.Default)
End If

workbook.ChartSheets.ActiveChartSheet = chartSheet
See Also