Vcl.Grids.TCustomGrid.CanEditAcceptKey

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

Delphi

function CanEditAcceptKey(Key: Char): Boolean; dynamic;

C++

DYNAMIC bool __fastcall CanEditAcceptKey(System::WideChar Key);

プロパティ

種類 可視性 ソース ユニット
function protected
Vcl.Grids.pas
Vcl.Grids.hpp
Vcl.Grids TCustomGrid

説明

Key パラメータが現在のセルに入力できるデータであるかどうかを示します。

ユーザーがセルの内容を編集している間,CanEditAcceptKey メソッドはキーボード入力の有効性を単純な方法で判断します。TCustomGridCanEditAcceptKey メソッドは,常に true を返します。TCustomGrid クラスから派生するオブジェクトは,無効な文字を排除するために CanEditAcceptKey メソッドをオーバーライドします。

編集マスクを使用すれば,より詳細な有効性の確認ができます。

関連項目