Dokumentacija HotXLS

TXLSXProtectedRange and TXLSXProtectedRanges classes

TXLSXProtectedRanges lets selected cells remain editable while worksheet protection is enabled

Declarations

function TXLSXProtectedRanges.Add(const AName, ASqref: WideString): TXLSXProtectedRange;
procedure TXLSXProtectedRanges.Clear;
property TXLSXProtectedRange.Name, Sqref, Password, SecurityDescriptor: WideString;
property TXLSXProtectedRanges.Items[Index: Integer]: TXLSXProtectedRange;

Key članovi

NameUser-visible protected-range label
SqrefOne or more editable ranges in A1 notation
PasswordOptional legacy Excel range password hash
SecurityDescriptorOptional Windows security descriptor for the protected range

Primjer

Sheet.ProtectedRanges.Add('Input cells', 'B2:B20 D2:D20');
Sheet.Protect;

Vidi također