เซลล์
ภาพรวม
Cell เป็นคลาสใน Aspose.Cells FOSS สำหรับ Java.
เป็นตัวแทนของเซลล์ในแผ่นงาน.
คุณสมบัติ
| ชื่อ | ประเภท | การเข้าถึง | คำอธิบาย |
|---|---|---|---|
value | Object | อ่าน | คืนค่าที่ได้. |
stringValue | String | อ่าน | คืนค่าข้อความ. |
displayStringValue | String | อ่าน | คืนค่าข้อความที่แสดง. |
formula | String | อ่าน | คืนสูตร. |
type | CellValueType | อ่าน | คืนประเภท. |
style | Style | อ่าน | คืนสไตล์. |
วิธีการ
| Signature | Description |
|---|---|
getValue() → Object | คืนค่าที่กำหนด. |
setValue(value: Object) | ตั้งค่าที่กำหนด. |
getStringValue() → String | คืนค่าข้อความ. |
getDisplayStringValue() → String | คืนค่าข้อความที่แสดง. |
getFormula() → String | คืนสูตร. |
setFormula(value: String) | ตั้งสูตร. |
getType() → CellValueType | คืนประเภท. |
putValue(value: String) | เก็บค่าที่กำหนด. |
putValue(value: int) | เก็บค่าที่กำหนด. |
putValue(value: double) | เก็บค่าที่กำหนด. |
putValue(value: boolean) | เก็บค่าที่กำหนด. |
putValue(value: java.time.LocalDateTime) | เก็บค่าที่กำหนด. |
getStyle() → Style | คืนสไตล์. |
setStyle(style: Style) | ตั้งสไตล์. |