HotXLS 文档

Range 属性

返回 a Range object that represents a cell or a range of cells

语法

property Range[Cell1: string, Cell2: string]: IXLSRange;
Cell1 String。必须是指向范围左上角单元格的 A1 样式引用
Cell2 String。必须是指向范围右下角单元格的 A1 样式引用

示例

This example sets the value of cell A1 on the first sheet to 3.14159

Workbook.Sheets[1].Range['A1','A1'].Value := 3.14159;
This example sets the font style in cells A1:D10 on the first sheet to bold

Workbook.Sheets[1].Range['A1', 'D10'].Font.Bold := True;