Vcl.Themes.TStyleManager.TrySetStyle

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

class function TrySetStyle(const Name: string; ShowErrorDialog: Boolean = True): Boolean;

C++

__classmethod bool __fastcall TrySetStyle(const System::UnicodeString Name, bool ShowErrorDialog = true);

プロパティ

種類 可視性 ソース ユニット
function public
Vcl.Themes.pas
Vcl.Themes.hpp
Vcl.Themes TStyleManager


説明

例外を発生させることなく、名前で指定されたスタイルを、アクティブ スタイルとして設定します。

TrySetStyle は、そのスタイルをアクティブ スタイルとして正常に設定できた場合には True を、そうでなければ False を返します。

パラメータ 意味
Name アクティブに設定されるスタイルの名前を示す文字列
ShowErrorDialog スタイルをアクティブ スタイルとして設定できなかった場合に、エラー ダイアログ ボックス を表示するかどうかを示します。


関連項目