HotXLS 文档

AddComment 方法

Adds a cell comment by one-based worksheet coordinates and returns the created TXLSComment object

语法

function AddComment(Row, Col: Integer; Text: WideString): TXLSComment; overload;
function AddComment(Row, Col: Integer; Text: WideString; Author: WideString): TXLSComment; overload;
    

参数

Row, Col 1-based worksheet coordinates of the target cell
Text Comment text to attach to the target cell
Author Optional saved comment author

示例

Workbook.Sheets[1].AddComment(
  4, 2,
  'Check total',
  'Reviewer');
    

请参阅

TXLSWorksheet class
TXLSWorksheet.RCRange 属性
IXLSRange.AddComment 方法
TXLSComment class