HotXLS 文档

Count 属性

Returns the number of defined names in the collection. Read only Integer

语法

property Count: Integer;

示例

本示例 deletes all the defined names from the Worksheet one

With Workbook.Sheets[1] do begin
  cnt := Names.Count;
  if cnt > 0 then
     for i := cnt downto 1 do Names[i].Delete;
end;

参见

IXLSName 接口
IXLSNames.Item 属性
IXLSWorkbook.Names 属性
TXLSWorksheet.Names 属性