Cell
Cell
概述
Cell 是 Aspose.PDF 中的类型.
单元是排列内的单个细胞.
这种类型提供了20个方法,用于在Go程序中与Cell对象工作. 有的方法包括: Background, Border, ColSpan, Image, Margin, Row, RowSpan, SetBackground, SetBorder, SetColSpan, SetHAlign, SetImage,其他8种方法. 在安装了Aspose.PDF FOSS for Go 包后,所有公众成员都可以访问任何Go应用程序.
方法
| Signature | 描述情况 |
|---|---|
Row() → *Row | 排返回拥有者列. |
SetText(text: string) → *Cell | 设置文本值。. |
Text() → string | 返回文本. |
SetTextStyle(s: TextStyle) → *Cell | 取消了该表的 SetTextStyle 这个单元格. |
TextStyle() → *TextStyle | TextStyle 返回每个单元格的风格覆盖 (如果该单机继承了表默认值,则为null). |
SetBackground(col: *Color) → *Cell | 设置背景值。. |
Background() → *Color | 返回背景. |
SetBorder(b: BorderInfo) → *Cell | 设置边框值。. |
Border() → *BorderInfo | 恢复边界. |
SetMargin(m: MarginInfo) → *Cell | 设置边距值。. |
Margin() → *MarginInfo | 返回了利. |
SetHAlign(h: HAlign) → *Cell | 设置 h 对齐值。. |
SetVAlign(v: VAlign) → *Cell | 设置 v 对齐值。. |
SetColSpan(n: int) → *Cell | SetColSpan 设置列的跨度 (该单元格横向占用). |
ColSpan() → int | ColSpan 返回单元格的列跨度 (1如果不设置). |
SetRowSpan(n: int) → *Cell | SetRowSpan 设置行范围 (列的位置垂直). |
RowSpan() → int | RowSpan 返回单元格的行范围 (1 如果不设置). |
SetImage(path: string) → *Cell | SetImage 将单元格配置为表现命名图像而不是文本. |
SetImageFromStream(r: io.Reader) → *Cell | SetImageFromStream 是基于 io.Reader 的对应器. |
Image() → (path string, hasImage bool) | 图像返回配置的图片源. |