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

TdxSpreadSheetCustomTextBox Class

The base class for text boxes in the Spreadsheet control.

#Declaration

Delphi
TdxSpreadSheetCustomTextBox = class(
    TdxSpreadSheetCustomDrawingObject
)

#Remarks

This class implements the functionality required by text boxes displayed by the floating comment and text box containers.

The TdxSpreadSheetCustomTextBox class extends its ancestor with the following members that allow you to:

  • Position comment contents within text box boundaries (AlignHorz, AlignVert, and ContentOffsets);

  • Adjust text box dimensions according to the current content size (AutoSize);

  • Assign the text box content (Text);

  • Specify whether the text box content is wrapped if it does not fit the text box horizontally (WordWrap);

  • Identify whether the text box is empty (IsEmpty).

A TdxSpreadSheetCustomTextBox object is not referenced directly by any property in the Spreadsheet control. Use the TdxSpreadSheetCommentTextBox object referenced by the comment container’s TextBox property and the TdxSpreadSheetTextBox object referenced by the text box container’s TextBox property instead.

See Also