Τεκμηρίωση HotXLS

IsProtected ιδιότητα

Επιστρέφει the value that indicates whether the Worksheet is protected. Read-only Boolean

Σύνταξη

property IsProtected: boolean;

Παράδειγμα

This example checks whether a worksheet is protected before updating a range. Worksheet protection is independent from workbook protection

var
  Sheet: TXLSWorksheet;
begin
  Sheet := Workbook.Sheets[1];

  if Sheet.IsProtected then
    Sheet.UnProtect;

  Sheet.Range['A1', 'A1'].Value := 'Updated';
end;

Δείτε επίσης