System.UITypes.IsAbortResult
Delphi
function IsAbortResult(const AModalResult: TModalResult): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall IsAbortResult(const TModalResult AModalResult);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.UITypes.pas System.UITypes.hpp |
System.UITypes | System.UITypes |
説明
ユーザーが[中止]か[キャンセル]を選択したことを AModalResult
パラメータが示しているかどうかを確認します。
IsAbortResult を使用すると、ShowModal メソッドの戻り値を確認できます。AModalResult
が mrAbort
または mrCancel
の場合、IsAbortResult は True
を返します。