Back to Devexpress

Protection.Hidden Property

officefileapi-devexpress-dot-spreadsheet-dot-protection-72e17a8d.md

latest1.6 KB
Original Source

Protection.Hidden Property

Gets or sets whether the cell formula is hidden if the worksheet is protected.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
bool Hidden { get; set; }
vb
Property Hidden As Boolean

Property Value

TypeDescription
Boolean

true , to hide formula in a protected sheet; otherwise, false.

|

Remarks

The following code hides formulas in the C3 cell of the currently active worksheet when the sheet becomes protected:

csharp
spreadsheetControl1.ActiveWorksheet.Cells[2,2].Protection.Hidden = true;
vb
spreadsheetControl1.ActiveWorksheet.Cells(2,2).Protection.Hidden = True

See Also

Protection

Protection in Spreadsheet Documents

Protection Interface

Protection Members

DevExpress.Spreadsheet Namespace