TdxDashboard.Language Property
Specifies the required language (for dashboard content localization).
Declaration
property Language: string read; write;
Property Value
| Type | Description |
|---|---|
| string | The target culture name for content localization. You can use any ISO-based culture identifier to select the corresponding localization. |
Remarks
Use the Language property to switch between available languages for dashboard content.
Code Example: Switch Between Languages at Runtime
The code example in this section demonstrates three button OnClick event handlers that allow users to switch between the base language (English) and two localizations (Greek and Italian). Once the TdxDashboard.Language property value is changed, Dashboard Designer and Dashboard Viewer dialogs use the corresponding localization when displayed the next time.
uses
dxDashboard; // Declares the TdxDashboard class
// ...
procedure TMyForm.btnEnglishClick(Sender: TObject);
begin
dxDashboard1.Language := 'en-US';
end;
procedure TMyForm.btnGreekClick(Sender: TObject);
begin
dxDashboard1.Language := 'el-GR';
end;
procedure TMyForm.btnItalianClick(Sender: TObject);
begin
dxDashboard1.Language := 'it-IT';
end;
Default Value
The Language property’s default value is an empty string.
The default Language property value indicates the en-US locale (culture).