Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

編集フィールド - SelectTextメソッド 

Panel
bgColor#2c3c4c

値内の選択を設定します

編集フィールド (PRIM_MD.Edit) のメンバ

パラメータ

名前

タイプ

データタイプ

記述

StartPosition

*Input

整数

値の中の選択が開始する位置

Length

*Input (任意)

整数

選択する文字数

詳細

SelectText メソッドは、編集内の選択を設定します。

カーソルが最初の文字の左側にある場合、値は 0 になります。

選択処理の最も一般的な要件は、入力中に値を完了することです。これは、AutoCompleting イベントによって自動的に管理されます。

SelectText は完全性のために提供されており、ほとんどの開発目的に必要になることはほとんどありません。 The SelectText method sets selection within an edit.
If the cursor is to the left of the first character, the value will be 0.
The most common requirement for Selection handling is completing a value during input. This is managed automatically by the AutoCompleting event.
SelectText is provided for completeness and is unlikely to be required for most development purposes.


参照

すべてのコンポーネント クラス
テクニカルリファレンス