Search Results for

    Show / Hide Table of Contents

    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.

    See also

    • TExcelFile
    • CommentRowCount
    • CommentCountRow
    • GetCommentRow
    • GetCommentRowCol
    • GetComment
    • SetCommentRow(Integer, Integer, string, IImageProperties, Boolean)
    • SetComment(Integer, Integer, TRichString)
    • GetCommentPropertiesRow
    • GetCommentProperties
    • SetCommentPropertiesRow
    In This Article
    Back to top FlexCel Studio for VCL and FireMonkey v7.24
    © 2002 - 2025 tmssoftware.com