HotXLS 文档

TXLSComment class

单元:lxDraw
表示 a cell comment

说明

Use the Comment property to return a Comment object. 以下示例 changes the text in the comment in cell E5
Workbook.Sheets[1].Range['E5', 'E5'].Comment.Text := 'Comment';
Use the AddComment method to add a comment to a range. 以下示例 adds a comment to cell E5 on Worksheet one
with Workbook.Sheets[1].Range['E5', 'E5'].AddComment do begin
    Visible := False;
    Text := 'Comment text';
    Author := 'Reviewer';
end;

属性

Author property