Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetCommentContainer Class

A floating cell comment container.

#Declaration

Delphi
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