WPS 基础接口 > 表格 API 参考 > Application > 属性 > Application.FindFormat 属性
设置或返回要查找的单元格格式类型的搜索条件。

语法

表达式.FindFormat

表达式   一个代表 Application 对象的变量。

示例

在本示例中,搜索条件设置为查找文字为 Arial、常规和 10 号字体的单元格,并通知用户。

示例代码
function UseFindFormat(){
    let font = Application.FindFormat.Font

    // Establish search criteria.
    font.Name = "Arial"
    font.FontStyle = "Regular"
    font.Size = 10

    // Notify user.
    MsgBox(font.Name + "-" + font.FontStyle + "-" + font.Size + " font is what the search criteria is set to.")
}


请参阅