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

TdxLayoutContainer.BeginTranslation Method

In This Article

Enables the translation mode for the container’s layout element captions.

#Declaration

Delphi
procedure BeginTranslation;

#Remarks

The translation mode is useful for batch updates to captions when applying translations to multiple layout elements. In this mode, a string assigned to a layout element’s CaptionOptions.Text property is considered a translation and automatically replaces the element’s DefaultCaption property value.

Do the following to translate element captions:

  • Call the BeginTranslation procedure to enable the translation mode;

  • Assign new captions to layout elements using their CaptionOptions.Text property;

  • Call the EndTranslation procedure to disable this mode and apply the changes.

As with the BeginUpdate/EndUpdate method blocks, ensure that every BeginTranslation call has a corresponding EndTranslation call, even if an exception occurs.

Alternatively, the layout control provides the BeginTranslation and EndTranslation procedures, which internally call the corresponding container procedures.

See Also