TXlsFile.SetComment Method
Sets or deletes a comment at the specified cell.
Remarks
To delete a comment, set its value to String.Empty.
Syntax
Unit: FlexCel.XlsAdapter
procedure TXlsFile.SetComment(const row: Integer; const col: Integer; const value: TRichString; const author: string; commentProperties: IImageProperties; const removeEmpty: Boolean = True); overload; override;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | row | Integer | Row index (1 based) |
const | col | Integer | Column index (1 based) |
const | value | TRichString | Text of the comment. Set it to String.Empty to delete the comment. |
const | author | string | Author of the comment. |
commentProperties | IImageProperties | Properties of the popup. | |
const | removeEmpty | Boolean | Optional: Default value is True |
See also
- TXlsFile
- TExcelFile.CommentRowCount
- TExcelFile.CommentCountRow
- TExcelFile.GetCommentRow
- TExcelFile.GetCommentRowCol
- TExcelFile.GetComment
- TExcelFile.SetCommentRow(Integer, Integer, string, IImageProperties, Boolean)
- TExcelFile.GetCommentPropertiesRow
- TExcelFile.SetCommentPropertiesRow
- TExcelFile.SetCommentProperties