Vcl.Mask.TCustomMaskEdit.GetLastEditChar
Delphi
function GetLastEditChar: Integer;
C++
int __fastcall GetLastEditChar();
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | protected | Vcl.Mask.pas Vcl.Mask.hpp |
Vcl.Mask | TCustomMaskEdit |
説明
最後の非リテラル文字の EditMask におけるインデックス値を返します。
GetLastEditChar メソッドを呼び出すと,ユーザーが EditText を変更できる EditMask の末尾位置を見つけることができます。たとえば,0 は最初の文字,1 は 2 番めの文字を指定します。マスクがなければ,GetLastEditChar はテキストの長さを返します。