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

TdxSpreadSheetTextWrap Class

An action object that corresponds to the TextWrap command provided by the Spreadsheet and Report Designer controls.

#Declaration

Delphi
TdxSpreadSheetTextWrap = class(
    TdxSpreadSheetCustomFormatCellsAction
)

#Remarks

This class does not introduce any new public members. Executing this action object applies/removes the word wrap attribute to/from all currently selected cells. The TdxSpreadSheetTextWrap action object’s Checked property is updated with the current Style.WordWrap property value of the focused cell.

UI elements linked to a TdxSpreadSheetTextWrap action object are enabled only if the following conditions are met:

If no cells can be selected in the protected worksheet (i.e., its OptionsProtection.ActualAllowSelectUnlockedCells property returns False), executing the TdxSpreadSheetTextWrap action object has no effect.

Note

Applying the word wrap attribute to a cell/cell range automatically removes the shrink to fit attribute from it.

See Also