API 参考

Find & Replace

本 API 页面目前提供英文正文。代码签名与标识符不随界面语言变化。
Packages@univerjs/sheets-find-replace

This interface class provides methods to find and replace text in the univer.

This class should not be instantiated directly. Use factory methods on univerAPI instead.

Overview

@univerjs/sheets-find-replace

APIs

Getters & Queries

findAll

Signature

TypeScript
findAll(): FRange[]

Returns

  • FRange[] — See signature above.
Source: @univerjs/sheets-find-replace

findNext

Signature

TypeScript
findNext(): Nullable<FRange>

Returns

  • any — See signature above.
Source: @univerjs/sheets-find-replace

findPrevious

Signature

TypeScript
findPrevious(): Nullable<FRange>

Returns

  • any — See signature above.
Source: @univerjs/sheets-find-replace

getCurrentMatch

Signature

TypeScript
getCurrentMatch(): Nullable<FRange>

Returns

  • any — See signature above.
Source: @univerjs/sheets-find-replace

Miscellaneous

ensureCompleteAsync

Signature

TypeScript
async ensureCompleteAsync(): Promise<Nullable<IFindComplete>>

Returns

  • Promise<Nullable<IFindComplete<IFindMatch<unknown>>>> — See signature above.
Source: @univerjs/sheets-find-replace

matchCaseAsync

Signature

TypeScript
async matchCaseAsync(matchCase: boolean): Promise<IFTextFinder>

Parameters

  • matchCase booleanNo description

Returns

  • Promise<IFTextFinder> — See signature above.
Source: @univerjs/sheets-find-replace

matchEntireCellAsync

Signature

TypeScript
async matchEntireCellAsync(matchEntireCell: boolean): Promise<IFTextFinder>

Parameters

  • matchEntireCell booleanNo description

Returns

  • Promise<IFTextFinder> — See signature above.
Source: @univerjs/sheets-find-replace

matchFormulaTextAsync

Signature

TypeScript
async matchFormulaTextAsync(matchFormulaText: boolean): Promise<IFTextFinder>

Parameters

  • matchFormulaText booleanNo description

Returns

  • Promise<IFTextFinder> — See signature above.
Source: @univerjs/sheets-find-replace

replaceAllWithAsync

Signature

TypeScript
async replaceAllWithAsync(replaceText: string): Promise<number>

Parameters

  • replaceText stringNo description

Returns

  • Promise<number> — See signature above.
Source: @univerjs/sheets-find-replace

replaceWithAsync

Signature

TypeScript
async replaceWithAsync(replaceText: string): Promise<boolean>

Parameters

  • replaceText stringNo description

Returns

  • Promise<boolean> — See signature above.
Source: @univerjs/sheets-find-replace

你觉得这篇文档如何?

© 2026 DreamNum Co., Ltd.