PictureCollection

PictureCollection

Tổng quan

PictureCollection là một struct trong Aspose.Cells FOSS cho Rust.

Đại diện cho bộ sưu tập hình ảnh được gắn vào một worksheet.

Struct này khai báo 10 phương thức cho các đối tượng PictureCollection trong các chương trình Rust. Các phương thức khả dụng bao gồm: add, add_from_bytes, add_from_file, add_from_reader, clear, count, get, get_count, item, remove_at. Các thành viên công khai có thể truy cập được bởi bất kỳ ứng dụng Rust nào sau khi cài đặt gói Aspose.Cells FOSS cho Rust.

Phương thức

Chữ kýMô tả
count() → usizeLấy số lượng mục.
get_count() → usizeLấy số lượng mục.
add(upper_left_row: i32, upper_left_column: i32, lower_right_row: i32, lower_right_column: i32, image_data: Vec<u8>) → Result<usize, CellsError>Thêm một hình ảnh vào bảng tính từ đường dẫn tệp và trả về chỉ mục của nó.
add_from_bytes(upper_left_row: i32, upper_left_column: i32, lower_right_row: i32, lower_right_column: i32, image_data: &[u8]) → Result<usize, CellsError>Thêm một mục.
add_from_reader(upper_left_row: i32, upper_left_column: i32, lower_right_row: i32, lower_right_column: i32, reader: R) → Result<usize, CellsError>Thêm một hình ảnh từ bộ đọc và trả về chỉ mục bắt đầu từ 0.
add_from_file(upper_left_row: i32, upper_left_column: i32, lower_right_row: i32, lower_right_column: i32, path: impl AsRef<Path>) → Result<usize, CellsError>Thêm một mục.
get(index: usize) → Option<Picture<'_>>Lấy mục từ bộ sưu tập.
item(index: usize) → Option<Picture<'_>>Lấy mục từ bộ sưu tập.
remove_at(index: usize) → Result<(), CellsError>Xóa một mục.
clear()Xóa trạng thái hiện tại.

Xem thêm

 Tiếng Việt