LineAnnotation
LineAnnotation
概述
LineAnnotation 是 Aspose.PDF 中的类型.
LineAnnotation 画出两个点之间的直线,每个端的选项线结尾 (箭头,圆等).
这个类型提供了15种方法,用于在Go程序中与 LineAnnotation 对象工作. 有的方法包括: AnnotationType, End, EndLineEnding, InteriorColor, LeaderLineLength, RegenerateAppearance, SetBorderWidth, SetEnd, SetEndLineEnding, SetInteriorColor, SetLeaderLineLength, SetStart,另外还有3种方法. 在安装了Aspose.PDF FOSS for Go 包后,所有公众成员都可以访问任何Go应用程序.
方法
| Signature | 描述情况 |
|---|---|
AnnotationType() → AnnotationType | 返回注释类型. |
Start() → Point | 开始返回线的起点. |
End() → Point | 返回线的终点. |
SetStart(p: Point) | 更新线的起点并重新计算/Rect. |
SetEnd(p: Point) | 更新线的终点并重新计算/Rect. |
SetBorderWidth(w: float64) | 在AP/N再生之前,重新计算了 /Rect (依赖于PLACEHOLDER_2} 通过线末填充),确保外观流的BBox在一次传输中与新边界匹配. |
RegenerateAppearance() | 必须从现有物业重建. |
StartLineEnding() → LineEndingStyle | StartLineEnding 返回对行开始的样式. |
EndLineEnding() → LineEndingStyle | EndLineEnding 返回对行末端应用的样式. |
SetStartLineEnding(s: LineEndingStyle) | SetStartLineEnding 设置了开始边线结束风格. |
SetEndLineEnding(s: LineEndingStyle) | 设置终端边线结束风格. |
InteriorColor() → *Color | InteriorColor返回 /IC填写颜色 (用于填满线尾:ClosedArrow,RClosedArrow,平方,圆圈,钻石). |
SetInteriorColor(c: *Color) | SetInteriorColor 将 /IC 写成 RGB 数组; nil 删除该条目. |
LeaderLineLength() → float64 | LeaderLineLength 返回 /LL值 (0 如果没有). |
SetLeaderLineLength(l: float64) | 写着"LL". |