HotXLS Docs
Contents
Home
Overview
TGridToXLS
IXLSWorkbook
Home
Contents
Overview
Protect 方法
保护工作簿,使其无法被修改
语法
procedure
Protect();
procedure
Protect(Password: string);
Password
可选字符串。一个为工作簿指定区分大小写密码的字符串。如果省略此参数,则可以不使用密码取消工作簿保护。否则,必须指定密码才能取消工作簿保护
示例
此示例为工作簿设置密码
Workbook.Protect(
'mypass123'
);