DefinedNameCollection

DefinedNameCollection

概述

DefinedNameCollection 是 Aspose.Cells 为 Rust 提供的 FOSS 中的结构体。

表示一组已定义的名称对象。

此结构体为 Rust 程序中的 DefinedNameCollection 对象声明了 5 个方法。可用的方法包括:add、add_with_scope、count、get、remove_at。在安装 Aspose.Cells 为 Rust 提供的 FOSS 包后,公共成员可被任何 Rust 应用程序访问。

方法

签名描述
count() → usize获取项目的数量。
add(name: impl Into<String>, formula: impl Into<String>) → Result<usize, CellsError>添加指定的项目。
add_with_scope(name: impl Into<String>, formula: impl Into<String>, local_sheet_index: Option<usize>) → Result<usize, CellsError>添加一个项目。
get(index: usize) → Option<DefinedName<'_>>获取集合中的项目。
remove_at(index: usize) → Result<(), CellsError>移除一个项目。

另请参阅

 中文