Table of Contents

TXlsFile.GetComment Method

Returns the comment at the specified row and column, or an empty string if there is no comment on that cell.

Remarks

Use this method when you are searching for a comment on a fixed position. To loop along all comments on a sheet, see TExcelFile.CommentRowCount

Syntax

Unit: FlexCel.XlsAdapter

function TXlsFile.GetComment(const row: Integer; const col: Integer): TRichString; override;

Parameters

<-> Parameter Type Description
const row Integer Row index (1 based)
const col Integer Column index (1 based)

Returns

The comment on the specified cell, String.Empty if there is no comment on it.

See also