Bagikan melalui


ITextProvider2.GetCaretRange(Boolean) Metode

Definisi

Mengambil rentang teks panjang nol di lokasi tanda sisipan yang termasuk dalam kontrol berbasis teks.

public:
 ITextRangeProvider ^ GetCaretRange([Out] bool & isActive);
ITextRangeProvider GetCaretRange([Out] bool & isActive);
public ITextRangeProvider GetCaretRange(out bool isActive);
Public Function GetCaretRange (ByRef isActive As Boolean) As ITextRangeProvider

Parameter

isActive
Boolean

bool

true jika kontrol berbasis teks yang berisi tanda sisipan memiliki fokus keyboard; jika tidak, salah.

Mengembalikan

Rentang teks yang mewakili lokasi tanda sisipan saat ini yang termasuk dalam kontrol berbasis teks.

Berlaku untuk