TExcelFile.SetCommentProperties Method
Sets the popup placement for an existing comment. If there is not a comment on cell (row,col), this will create an empty one.
Remarks
Note that you can change the size but not the placement of the popup. This placement you set here is the one you see when you right click the cell and choose "Show comment". The yellow popup box is placed automatically by excel.
Syntax
Unit: FlexCel.Core
procedure TExcelFile.SetCommentProperties(const row: Integer; const col: Integer; commentProperties: IImageProperties); virtual; abstract;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | row | Integer | Row index (1 based) |
const | col | Integer | Column index (1 based) |
commentProperties | IImageProperties | Placement and properties of the comment popup. Null if there is no comment on the cell. This parameter can be a TImageProperties, or the more complete derived class TCommentProperties, if you need to set extra information like the text alignment. |