HotXLS Docs
Contents
Home
Overview
TGridToXLS
IXLSWorkbook
Home
Contents
Overview
UnProtect 方法
移除工作簿的保护。如果工作簿未受保护,此方法无效
语法
procedure
UnProtect();
procedure
UnProtect(Password: string);
procedure
UnProtect(Password: string; lcid: Integer);
Password
String。一个表示用于取消工作簿保护的区分大小写密码的字符串。如果工作簿未使用密码保护,则忽略此参数
lcid
Integer。区域设置 ID
示例
此示例移除工作簿的保护
Workbook.UnProtect(
'mypass123'
);