HotXLS Delphi Excel Read Write Library / Component Developers Guide loslab Inc.

TXLSComment class

Unit: lxDraw
Represents a cell comment.

Description

Use the Comment property to return a Comment object. The following example 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. The following example adds a comment to cell E5 on Worksheet one.
with Workbook.Sheets[1].Range['E5', 'E5'].AddComment do begin
    Visible := False;
    Text := 'Comment text';
end;

Properties

Copyright©2014 loslab.com