FMX.Controls.TTextControl.GetAcceleratorCharIndex
Delphi
function GetAcceleratorCharIndex: Integer;
C++
int __fastcall GetAcceleratorCharIndex();
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| function | protected | FMX.Controls.pas FMX.Controls.hpp |
FMX.Controls | TTextControl |
説明
レシーバー オブジェクトのテキスト文字列内のアクセラレータ文字のインデックスを返します。 {{#multireplace:FMX.Controls.TTextControl.GetAcceleratorCharIndex|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} は {{#multireplace:FMX.AcceleratorKey.IAcceleratorKeyReceiver.GetAcceleratorCharIndex|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} を継承しています。以下の内容はすべて {{#multireplace:FMX.AcceleratorKey.IAcceleratorKeyReceiver.GetAcceleratorCharIndex|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} を参照しています。
レシーバー オブジェクトのテキスト文字列内のアクセラレータ文字のインデックスを返します。
GetAcceleratorCharIndex を使用すると、テキスト文字列がそれを同じ文字を複数格納している場合に、アクセラレータ文字を強調表示させることができます。