Documentación de HotXLS

Propiedades de permisos de protección

Estas propiedades Boolean controlan los permisos por acción guardados en el registro BIFF8 SheetProtect para una hoja de cálculo XLS clásica protegida. Establézcalas antes de guardar el libro de trabajo; llame a Protect para habilitar la protección de la hoja de cálculo

Sintaxis

property AllowEditObjects: Boolean;
property AllowEditScenarios: Boolean;
property AllowFormatCells: Boolean;
property AllowFormatColumns: Boolean;
property AllowFormatRows: Boolean;
property AllowInsertColumns: Boolean;
property AllowInsertRows: Boolean;
property AllowInsertHyperlinks: Boolean;
property AllowDeleteColumns: Boolean;
property AllowDeleteRows: Boolean;
property AllowSelectLockedCells: Boolean;
property AllowSort: Boolean;
property AllowAutoFilter: Boolean;
property AllowPivotTables: Boolean;
property AllowSelectUnlockedCells: Boolean;

Valores predeterminados

AllowSelectLockedCells property AllowSelectUnlockedCells AllowSelectLockedCells: Boolean; True property False

Ejemplo

Sheet.AllowDeleteRows := True;
Sheet.AllowInsertRows := True;
Sheet.AllowAutoFilter := True;
Sheet.Protect('mypass123');

Véase también