public static class FindCondition.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
FindCondition |
build() |
FindCondition.Builder |
includeFormulas(Boolean includeFormulas)
是否仅搜索单元格公式,默认值为 false;- `true`:表示仅搜索单元格公式;- `false`:表示仅搜索单元格内容
示例值:false
|
FindCondition.Builder |
matchCase(Boolean matchCase)
是否忽略大小写,默认为 false;- `true`:表示忽略字符串中字母大小写差异;- `false`:表示区分字符串中字母大小写
示例值:true
|
FindCondition.Builder |
matchEntireCell(Boolean matchEntireCell)
是否完全匹配整个单元格,默认值为 false;- `true`:表示完全匹配单元格,比如 find 取值为 "hello",则单元格中的内容必须为 "hello";- `false`:表示允许部分匹配单元格,比如 find 取值为 "hello",则单元格中的内容包含 "hello" 即可
示例值:false
|
FindCondition.Builder |
range(String range)
查找范围,参考 [名词解释 Range](https://open.feishu.cn/document/ukTMukTMukTM/uATMzUjLwEzM14CMxMTN/overview)
示例值:PNIfrm!
|
FindCondition.Builder |
searchByRegex(Boolean searchByRegex)
是否为正则匹配,默认值为 false;- `true`:表示使用正则匹配;- `false`:表示不使用正则匹配
示例值:false
|
public FindCondition.Builder range(String range)
示例值:PNIfrm!A1:C5
range - public FindCondition.Builder matchCase(Boolean matchCase)
示例值:true
matchCase - public FindCondition.Builder matchEntireCell(Boolean matchEntireCell)
示例值:false
matchEntireCell - public FindCondition.Builder searchByRegex(Boolean searchByRegex)
示例值:false
searchByRegex - public FindCondition.Builder includeFormulas(Boolean includeFormulas)
示例值:false
includeFormulas - public FindCondition build()
Copyright © 2025. All rights reserved.