HotXLS Belgeleri

FindText yöntem

Finds the first loaded classic XLS text cell that contains the requested text

Sözdizimi

function FindText(SearchText: WideString; out Row: Integer; out Col: Integer): Boolean; overload;
function FindText(SearchText: WideString; out Row: Integer; out Col: Integer; MatchCase: Boolean): Boolean; overload;

Açıklamalar

FindText Mevcut çalışma sayfası hücrelerini satır-major sırada tarar ve ilk eşleşme için 1 tabanlı herkese açık satır ve sütun koordinatlarını döndürür
The two-parameter overload is case-insensitive. Pass True for MatchCase aramanın özgün büyük/küçük harfle tam eşleşmesi gerekiyorsa. Formül hücreleri ve metin olmayan hücreler atlanır
When no match is found, the method returns False and sets both coordinates to zero

Örnek

if Workbook.Sheets[1].FindText('[CONTACT]', Row, Col) then
  Workbook.Sheets[1].Cells[Row, Col].Value := 'John Smith';

See Also