CellMut

ภาพรวม

CellMut เป็น struct ใน Aspose.Cells FOSS สำหรับ Rust.

เป็นตัวแทนของเซลล์ใน worksheet เดียวและให้การดำเนินการค่า สูตร และสไตล์.

struct นี้ประกาศ 88 เมธอดสำหรับอ็อบเจกต์ CellMut ในโปรแกรม Rust. เมธอดที่มีให้รวมถึง: 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, และเมธอดเพิ่มเติมอีก 76 รายการ. สมาชิกสาธารณะสามารถเข้าถึงได้จากแอปพลิเคชัน Rust ใด ๆ หลังจากติดตั้งแพ็กเกจ Aspose.Cells FOSS สำหรับ Rust.

วิธีการ

ลายเซ็นคำอธิบาย
name() → Stringรับค่าที่เกี่ยวข้อง.
get_name() → Stringดึงค่าที่เกี่ยวข้อง.
row() → u32รับค่าที่เกี่ยวข้อง.
get_row() → u32รับค่าที่เชื่อมโยง.
column() → u32รับค่าที่เกี่ยวข้อง.
get_column() → u32รับค่าที่เกี่ยวข้อง.
value() → Option<&CellValue>รับค่าตรรกะของเซลล์.
get_value() → Option<&CellValue>รับค่าตารางเชิงตรรกะ.
value_type() → CellValueTypeรับประเภทค่าตารางเซลล์ตรรกะปัจจุบัน.
get_type() → CellValueTypeรับประเภทค่าของเซลล์ตรรกะปัจจุบัน.
int_value() → Option<i32>รับค่าที่เกี่ยวข้อง.
get_int_value() → Option<i32>ดึงค่าที่เกี่ยวข้อง.
long_value() → Option<i64>รับค่าที่เกี่ยวข้อง.
get_long_value() → Option<i64>รับค่าที่เกี่ยวข้อง.
double_value() → Option<f64>รับค่าที่เกี่ยวข้อง.
get_double_value() → Option<f64>รับค่าที่เชื่อมโยง.
bool_value() → Option<bool>รับค่าที่เกี่ยวข้อง.
get_bool_value() → Option<bool>รับค่าที่เกี่ยวข้อง.
date_time_value() → Option<DateTime<Utc>>รับค่าที่เชื่อมโยง.
get_date_time_value() → Option<DateTime<Utc>>รับค่าที่เกี่ยวข้อง.
string_value() → Option<&str>รับการแสดงผลเป็นสตริงที่เสถียรของค่าของเซลล์โดยไม่ใช้การจัดรูปแบบการแสดงผลตามสไตล์.
get_string_value() → Option<&str>รับการแสดงผลเป็นสตริงที่เสถียรของค่าของเซลล์โดยไม่ใช้การจัดรูปแบบการแสดงผลตามสไตล์.
raw_string_value() → Stringรับค่าที่เกี่ยวข้อง.
get_raw_string_value() → Stringรับค่าที่เกี่ยวข้อง.
display_string_value() → Stringดึงข้อความที่แสดงซึ่งสร้างจากค่าของเซลล์, รูปแบบ, และวัฒนธรรมของสมุดงาน.
get_display_string_value() → Stringดึงข้อความที่แสดงซึ่งสร้างจากค่าของเซลล์, รูปแบบ, และวัฒนธรรมของสมุดงาน.
formatted_string_value() → Stringรับค่าที่เชื่อมโยง.
get_formatted_string_value() → Stringรับค่าที่เกี่ยวข้อง.
style() → Styleรับค่าที่เกี่ยวข้อง.
get_style() → Styleรับค่าที่เกี่ยวข้อง.
get_style_with_borders(_check_borders: bool) → Styleรับค่าที่เกี่ยวข้อง.
border() → Option<&Border>รับค่าที่เกี่ยวข้อง.
get_border() → Option<&Border>รับค่าที่เกี่ยวข้อง.
formula_cached_value() → Option<&CellValue>รับค่าที่เกี่ยวข้อง.
get_formula_cached_value() → Option<&CellValue>ดึงค่าที่เกี่ยวข้อง.
put_value(value: CellValue) → Result<(), CellsError>กำหนดค่า.
put_value_object(value: impl Into<CellObjectValue>) → Result<(), CellsError>ตั้งค่าอ็อบเจ็กต์ค่า.
put_number(value: f64) → Result<(), CellsError>ตั้งค่าตัวเลข.
put_bool(value: bool) → Result<(), CellsError>ตั้งค่า bool.
put_string(value: impl Into<String>) → Result<(), CellsError>ตั้งค่า string.
put_value_string(value: impl Into<String>) → Result<(), CellsError>ตั้งค่าสตริงค่า.
put_value_i32(value: i32) → Result<(), CellsError>กำหนดค่า i32.
put_value_u8(value: u8) → Result<(), CellsError>ตั้งค่า u8.
put_value_i16(value: i16) → Result<(), CellsError>ตั้งค่าค่า i16.
put_value_i64(value: i64) → Result<(), CellsError>ตั้งค่า i64.
put_value_f32(value: f32) → Result<(), CellsError>ตั้งค่า f32.
put_value_f64(value: f64) → Result<(), CellsError>ตั้งค่า f64.
put_value_decimal(value: f64) → Result<(), CellsError>กำหนดค่าทศนิยม.
put_value_bool(value: bool) → Result<(), CellsError>ตั้งค่าบูลีน.
put_value_char(value: char) → Result<(), CellsError>ตั้งค่าตัวอักษรค่า.
put_date_time(value: DateTime<Utc>) → Result<(), CellsError>ตั้งค่าวันที่และเวลา.
put_value_date_time(value: DateTime<Utc>) → Result<(), CellsError>ตั้งค่าค่าวันที่และเวลา.
put_datetime(value: DateTime<Utc>) → Result<(), CellsError>ตั้งค่าวันที่และเวลา.
put_formula(value: impl Into<String>) → Result<(), CellsError>ตั้งสูตร.
put_value_string_converted(value: impl Into<String>, is_converted: bool) → Result<(), CellsError>ตั้งค่าสตริงค่าให้แปลงแล้ว.
put_value_string_converted_with_style(value: impl Into<String>, is_converted: bool, _set_style: bool) → Result<(), CellsError>ตั้งค่าข้อความค่าโดยแปลงด้วยสไตล์.
put_formula_with_cached_value(formula: impl Into<String>, cached_value: CellValue) → Result<(), CellsError>กำหนดสูตรพร้อมค่าที่แคชไว้.
set_style(style: CellStyle) → Result<(), CellsError>ตั้งค่าที่เกี่ยวข้อง.
set_style_with_explicit_flag(style: CellStyle, _explicit_flag: bool) → Result<(), CellsError>ตั้งค่าค่าที่เกี่ยวข้อง.
set_style_with_flag(style: CellStyle, flag: StyleFlag) → Result<(), CellsError>ตั้งค่าค่าที่เกี่ยวข้อง.
set_border(border: Border) → Result<(), CellsError>ตั้งค่าค่าที่เกี่ยวข้อง.
apply_border_line_style(value: BorderLineStyle) → Result<(), CellsError>ใช้สไตล์เส้นขอบ.
apply_border_color(value: impl Into<String>) → Result<(), CellsError>ใช้สีขอบ.
clear_border() → Result<(), CellsError>ลบขอบ.
clear_style() → Result<(), CellsError>ลบสไตล์.
reset_style() → Result<(), CellsError>รีเซ็ตสไตล์ของเซลล์ให้เป็นสไตล์เริ่มต้นของเวิร์กบุ๊ก.
apply_font(font: Font) → Result<(), CellsError>ใช้ฟอนต์.
apply_fill(fill: Fill) → Result<(), CellsError>ใช้การเติม.
apply_fill_color(value: impl Into<String>) → Result<(), CellsError>ใช้สีเติม.
clear_fill_color() → Result<(), CellsError>ล้างสีเติม.
clear_fill() → Result<(), CellsError>ล้างการเติม.
apply_bold(value: bool) → Result<(), CellsError>ใช้ตัวหนา.
apply_italic(value: bool) → Result<(), CellsError>ใช้ตัวเอียง.
clear_bold() → Result<(), CellsError>ลบการทำตัวหนา.
clear_italic() → Result<(), CellsError>ลบการทำตัวเอียง.
clear_font() → Result<(), CellsError>ลบฟอนต์.
apply_number_format(value: impl Into<String>) → Result<(), CellsError>ใช้รูปแบบตัวเลข.
clear_number_format() → Result<(), CellsError>ลบรูปแบบตัวเลขออก.
apply_horizontal_alignment(value: HorizontalAlignment) → Result<(), CellsError>ใช้การจัดแนวนอน.
clear_horizontal_alignment() → Result<(), CellsError>ล้างการจัดแนวนอน.
apply_vertical_alignment(value: VerticalAlignment) → Result<(), CellsError>ใช้การจัดแนวแนวตั้ง.
clear_vertical_alignment() → Result<(), CellsError>ล้างการจัดแนวแนวตั้ง.
clear_alignment() → Result<(), CellsError>ลบการจัดแนว.
apply_text_wrap(value: bool) → Result<(), CellsError>ใช้การตัดบรรทัด.
clear_text_wrap() → Result<(), CellsError>ลบการตัดบรรทัด.
update_style(updater: impl FnOnce(&mut CellStyle)) → Result<(), CellsError>อัปเดตสไตล์เซลล์โดยตรงโดยใช้คอลแบ็กที่จัดเตรียมไว้.
set_value(value: CellValue) → Result<(), CellsError>ตั้งค่าค่าตารางเซลล์ตามตรรกะ.
clear_value() → Result<(), CellsError>ล้างค่า.

ดูเพิ่มเติม

 ภาษาไทย