鴻蒙OS TextField.CursorChangedListener

2022-09-09 11:03 更新

TextField.CursorChangedListener

  1. protected static interface TextField.CursorChangedListener

提供可在光標位置更改時調用的回調。

方法總結

修飾符和類型 方法 描述
void onCursorChange(TextField textField, int posStart, int posAfter) 當光標位置改變時調用。

方法詳情

onCursorChange

void onCursorChange(TextField textField, int posStart, int posAfter)

當光標位置改變時調用。

參數(shù):

參數(shù)名稱 參數(shù)描述
textField 指示光標所在的 TextField 對象。
posStart 指示光標的起始位置。
posAfter 指示光標的結束位置。
以上內容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號