CellMut

Tổng quan

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

Đại diện cho một ô worksheet duy nhất và cung cấp các thao tác giá trị, công thức và kiểu dáng.

Struct này khai báo 88 phương thức cho các đối tượng CellMut trong các chương trình Rust. Các phương thức khả dụng bao gồm: apply_bold, apply_border_color, apply_border_line_style, apply_fill, apply_fill_color, apply_font, apply_horizontal_alignment, apply_italic, apply_number_format, apply_text_wrap, apply_vertical_alignment, bool_value, và 76 phương thức bổ sung. Các thành viên công cộng có thể truy cập từ 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ả
name() → StringLấy giá trị liên kết.
get_name() → StringLấy giá trị liên quan.
row() → u32Lấy giá trị liên quan.
get_row() → u32Lấy giá trị liên quan.
column() → u32Lấy giá trị liên kết.
get_column() → u32Lấy giá trị liên kết.
value() → Option<&CellValue>Lấy giá trị logic của ô.
get_value() → Option<&CellValue>Lấy giá trị logic của ô.
value_type() → CellValueTypeLấy kiểu giá trị ô logic hiện tại.
get_type() → CellValueTypeLấy kiểu giá trị ô logic hiện tại.
int_value() → Option<i32>Lấy giá trị liên quan.
get_int_value() → Option<i32>Lấy giá trị liên kết.
long_value() → Option<i64>Lấy giá trị liên quan.
get_long_value() → Option<i64>Lấy giá trị liên quan.
double_value() → Option<f64>Lấy giá trị liên quan.
get_double_value() → Option<f64>Lấy giá trị liên kết.
bool_value() → Option<bool>Lấy giá trị được liên kết.
get_bool_value() → Option<bool>Lấy giá trị liên kết.
date_time_value() → Option<DateTime<Utc>>Lấy giá trị liên kết.
get_date_time_value() → Option<DateTime<Utc>>Lấy giá trị liên kết.
string_value() → Option<&str>Lấy biểu diễn chuỗi ổn định của giá trị ô mà không áp dụng định dạng hiển thị dựa trên kiểu.
get_string_value() → Option<&str>Lấy biểu diễn chuỗi ổn định của giá trị ô mà không áp dụng định dạng hiển thị dựa trên kiểu.
raw_string_value() → StringLấy giá trị liên quan.
get_raw_string_value() → StringLấy giá trị liên quan.
display_string_value() → StringLấy văn bản hiển thị được tạo từ giá trị ô, kiểu dáng và ngôn ngữ của sổ làm việc.
get_display_string_value() → StringLấy văn bản hiển thị được tạo từ giá trị ô, kiểu dáng và ngôn ngữ của sổ làm việc.
formatted_string_value() → StringLấy giá trị liên kết.
get_formatted_string_value() → StringLấy giá trị liên quan.
style() → StyleLấy giá trị liên quan.
get_style() → StyleLấy giá trị liên quan.
get_style_with_borders(_check_borders: bool) → StyleLấy giá trị liên kết.
border() → Option<&Border>Lấy giá trị liên kết.
get_border() → Option<&Border>Lấy giá trị liên quan.
formula_cached_value() → Option<&CellValue>Lấy giá trị liên kết.
get_formula_cached_value() → Option<&CellValue>Lấy giá trị liên kết.
put_value(value: CellValue) → Result<(), CellsError>Đặt giá trị.
put_value_object(value: impl Into<CellObjectValue>) → Result<(), CellsError>Thiết lập đối tượng giá trị.
put_number(value: f64) → Result<(), CellsError>Đặt số.
put_bool(value: bool) → Result<(), CellsError>Đặt bool.
put_string(value: impl Into<String>) → Result<(), CellsError>Đặt chuỗi.
put_value_string(value: impl Into<String>) → Result<(), CellsError>Đặt chuỗi giá trị.
put_value_i32(value: i32) → Result<(), CellsError>Đặt giá trị i32.
put_value_u8(value: u8) → Result<(), CellsError>Đặt giá trị u8.
put_value_i16(value: i16) → Result<(), CellsError>Đặt giá trị i16.
put_value_i64(value: i64) → Result<(), CellsError>Đặt giá trị i64.
put_value_f32(value: f32) → Result<(), CellsError>Đặt giá trị f32.
put_value_f64(value: f64) → Result<(), CellsError>Đặt giá trị f64.
put_value_decimal(value: f64) → Result<(), CellsError>Đặt giá trị thập phân.
put_value_bool(value: bool) → Result<(), CellsError>Đặt giá trị bool.
put_value_char(value: char) → Result<(), CellsError>Đặt ký tự giá trị.
put_date_time(value: DateTime<Utc>) → Result<(), CellsError>Đặt ngày giờ.
put_value_date_time(value: DateTime<Utc>) → Result<(), CellsError>Đặt giá trị ngày giờ.
put_datetime(value: DateTime<Utc>) → Result<(), CellsError>Đặt datetime.
put_formula(value: impl Into<String>) → Result<(), CellsError>Đặt công thức.
put_value_string_converted(value: impl Into<String>, is_converted: bool) → Result<(), CellsError>Đặt giá trị chuỗi đã chuyển đổi.
put_value_string_converted_with_style(value: impl Into<String>, is_converted: bool, _set_style: bool) → Result<(), CellsError>Đặt chuỗi giá trị được chuyển đổi theo kiểu.
put_formula_with_cached_value(formula: impl Into<String>, cached_value: CellValue) → Result<(), CellsError>Đặt công thức với giá trị đã được lưu trong bộ nhớ đệm.
set_style(style: CellStyle) → Result<(), CellsError>Đặt giá trị liên quan.
set_style_with_explicit_flag(style: CellStyle, _explicit_flag: bool) → Result<(), CellsError>Đặt giá trị liên quan.
set_style_with_flag(style: CellStyle, flag: StyleFlag) → Result<(), CellsError>Đặt giá trị liên kết.
set_border(border: Border) → Result<(), CellsError>Đặt giá trị liên quan.
apply_border_line_style(value: BorderLineStyle) → Result<(), CellsError>Áp dụng kiểu đường viền.
apply_border_color(value: impl Into<String>) → Result<(), CellsError>Áp dụng màu viền.
clear_border() → Result<(), CellsError>Xóa viền.
clear_style() → Result<(), CellsError>Xóa kiểu.
reset_style() → Result<(), CellsError>Đặt lại kiểu ô về kiểu mặc định của workbook.
apply_font(font: Font) → Result<(), CellsError>Áp dụng phông chữ.
apply_fill(fill: Fill) → Result<(), CellsError>Áp dụng tô màu.
apply_fill_color(value: impl Into<String>) → Result<(), CellsError>Áp dụng màu nền.
clear_fill_color() → Result<(), CellsError>Xóa màu nền.
clear_fill() → Result<(), CellsError>Xóa tô.
apply_bold(value: bool) → Result<(), CellsError>Áp dụng in đậm.
apply_italic(value: bool) → Result<(), CellsError>Áp dụng in nghiêng.
clear_bold() → Result<(), CellsError>Xóa in đậm.
clear_italic() → Result<(), CellsError>Xóa in nghiêng.
clear_font() → Result<(), CellsError>Xóa phông chữ.
apply_number_format(value: impl Into<String>) → Result<(), CellsError>Áp dụng định dạng số.
clear_number_format() → Result<(), CellsError>Xóa định dạng số.
apply_horizontal_alignment(value: HorizontalAlignment) → Result<(), CellsError>Áp dụng căn chỉnh ngang.
clear_horizontal_alignment() → Result<(), CellsError>Xóa căn chỉnh ngang.
apply_vertical_alignment(value: VerticalAlignment) → Result<(), CellsError>Áp dụng căn chỉnh dọc.
clear_vertical_alignment() → Result<(), CellsError>Xóa căn chỉnh dọc.
clear_alignment() → Result<(), CellsError>Xóa căn chỉnh.
apply_text_wrap(value: bool) → Result<(), CellsError>Áp dụng bọc văn bản.
clear_text_wrap() → Result<(), CellsError>Xóa bọc văn bản.
update_style(updater: impl FnOnce(&mut CellStyle)) → Result<(), CellsError>Cập nhật kiểu ô tại chỗ bằng cách sử dụng callback được cung cấp.
set_value(value: CellValue) → Result<(), CellsError>Đặt giá trị logic của ô.
clear_value() → Result<(), CellsError>Xóa giá trị.

Xem thêm

 Tiếng Việt