Skip to main content

TdxSpreadSheetCustomTextBox Class

The base class for text boxes in the Spreadsheet control.

Declaration

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