Row
ภาพรวม
Row เป็นตัวอย่างใน Aspose.PDF FOSS for Go.
แถวคือแถวเดียวในตาราง.
ประเภทนี้ให้ 15 วิธีในการทํางานกับวัตถุ Row ในโปรแกรม Go. วิธีการที่ใช้ได้แก่: AddCell, AddCells, Background, Border, CellCount, Cells, Height, Margin, SetBackground, SetBorder, SetHeight, SetMargin,และวิธีการเพิ่มเติมอีก 3 วิธี. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Go ได้หลังจากติดตั้งแพ็คเกจ FOSS for Go.
วิธีการ
| Signature | คําอธิบาย |
|---|---|
Table() → *Table | ตารางคืนตาระที่เป็นเจ้าของ. |
AddCell(text: string) → *Cell | AddCell ติดเซลล์ที่มีข้อความที่ให้. |
AddCells(texts: ...string) → []*Cell | AddCells เป็นการสะดวกที่เรียก AddCell สําหรับข้อความแต่ละครั้งในลําดับ. |
Cells() → []*Cell | เซลล์คืนเซลล่าของแถว. |
CellCount() → int | CellCount คืนจํานวนเซลล์ในแถวนี้. |
SetHeight(h: float64) → *Row | SetHeight กําหนดความสูงที่วาดของแถวเป็นจุด. |
Height() → float64 | ความสูงคืนความสูงแถวที่ตั้งค่า. |
SetBackground(col: *Color) → *Row | SetBackground ตั้งสีพื้นหลังระดับแถว. |
Background() → *Color | แบคเกรดคืนสีพื้นหลังระดับแถว, หรือ null หากไม่ตั้งค่า. |
SetTextStyle(s: TextStyle) → *Row | SetTextStyle ตั้งแบบการเขียนตามพื้นฐานระดับแถว. |
TextStyle() → *TextStyle | TextStyle จะคืนการยกเว้นรูปแบบข้อความระดับแถว, หรือ nil หากไม่ตั้งค่า. |
SetBorder(b: BorderInfo) → *Row | SetBorder ตั้งขอบแบบถัดไประดับแถว. |
Border() → *BorderInfo | Border กลับการตัดขอบระดับแถว หรือ null หากไม่ตั้งค่า. |
SetMargin(m: MarginInfo) → *Row | SetMargin ตั้งค่าการพัดเซลล์แบบถ่วงระดับแถว. |
Margin() → *MarginInfo | Margin กลับการยกเว้น margin ระดับแถว หรือ null หากไม่ตั้งค่า. |