CellBuilder
CellBuilder
ภาพรวม
CellBuilder เป็นคลาสใน Aspose.PDF FOSS สำหรับ TypeScript.
เซลล์หนึ่งในแถวของตาราง: สตริงข้อความ, สไตล์ต่อเซลล์ที่เป็นตัวเลือก, และจำนวนคอลัมน์ที่เซลล์นั้นครอบคลุม.
คลาสนี้ประกาศ 2 เมธอดสำหรับอ็อบเจ็กต์ CellBuilder ในโปรแกรม TypeScript. เมธอดที่มีให้รวมถึง: constructor, setImage. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้โดยแอปพลิเคชัน TypeScript ใดๆ หลังจากติดตั้งแพคเกจ Aspose.PDF FOSS สำหรับ TypeScript. คุณสมบัติ: built, height, image, opts, width.
คุณสมบัติ
| ชื่อ | ประเภท | การเข้าถึง | คำอธิบาย |
|---|---|---|---|
image | : { built: BuiltImage; width: number; height: number; opts: CellImageOptions } | อ่าน/เขียน | ภาพเซลล์ที่แคชไว้ (จาก {@link setImage}) ที่มีขนาดพิกเซลตามธรรมชาติ, หรือ undefined. |
built | : BuiltImage | อ่าน | ดึงค่า built. |
width | : number | อ่าน | รับความกว้าง. |
height | : number | อ่าน | รับความสูง. |
opts | : CellImageOptions | อ่าน | รับค่า opts. |
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
| `constructor(text: string | TextRun[], options: CellTextOptions, colSpan: number, rowSpan: number, header: CellHeader)` |
setImage(data: Uint8Array, opts: CellImageOptions) → this | ฝัง data (JPEG/PNG) ลงในเซลล์นี้, ปรับอัตราส่วนให้พอดีกับกล่องเซลล์. |