Skip to main content

TdxSpreadSheetCommentContainer Class

A floating cell comment container.

Declaration

TdxSpreadSheetCommentContainer = class(
    TdxSpreadSheetCustomTextBoxContainer
)

Remarks

A comment container is a floating text box linked to an initialized cell. Each cell can have no more than a single floating comment. Comment containers are designed for use as reminders, clarifications, document feedback notes, etc.

The TdxSpreadSheetCommentContainer class extends a simple text box’s functionality with the following members that allow you to:

  • Move the comment container between initialized cells within the same worksheet (Cell);

  • Identify the comment author (Author);

  • Change the comment’s content and its appearance (TextBox).

To create a comment container, you can:

A worksheet’s Containers property provides indexed access to all floating containers. To expose a comment container’s type-specific members, cast the comment instance to the TdxSpreadSheetCommentContainer class.

Note

Comment containers support only a simple linear gradient as a background fill with only two key points and a single gradient area. Refer to the Shape.Brush property description for detailed information on limitations imposed on gradient fill support.

See Also