LineAnnotation
LineAnnotation
개요
LineAnnotation는 Go용 Aspose.PDF FOSS의 타입입니다. 상속 대상: drawingAnnotationBase.
LineAnnotation는 두 점 사이에 직선을 그리며, 각 끝에 선택적인 선 끝(화살표, 원 등)을 가질 수 있습니다.
이 타입은 Go 프로그램에서 LineAnnotation 객체를 다루기 위한 15개의 메서드를 제공합니다. 사용 가능한 메서드에는 AnnotationType, End, EndLineEnding, InteriorColor, LeaderLineLength, RegenerateAppearance, SetBorderWidth, SetEnd, SetEndLineEnding, SetInteriorColor, SetLeaderLineLength, SetStart 및 추가 3개의 메서드가 포함됩니다. Aspose.PDF FOSS for Go 패키지를 설치한 후 모든 공개 멤버는 모든 Go 애플리케이션에서 접근할 수 있습니다.
메서드
| 시그니처 | 설명 |
|---|---|
AnnotationType() → AnnotationType | 주석 유형을 반환합니다. |
Start() → Point | Start는 라인의 시작점을 반환합니다. |
End() → Point | End는 라인의 끝점을 반환합니다. |
SetStart(p: Point) | SetStart은 라인의 시작점을 업데이트하고 /Rect를 다시 계산합니다. |
SetEnd(p: Point) | SetEnd 은(는) 라인의 끝점을 업데이트하고 /Rect 를 다시 계산합니다. |
SetBorderWidth(w: float64) | SetBorderWidth 은(는) drawingAnnotationBase.SetBorderWidth 를 재정의하여 /Rect (라인 종료 패딩을 통해 BorderWidth 에 의존) 가 /AP/N 가 재생성되기 전에 다시 계산되도록 합니다 — 이렇게 하면 appearance stream의 /BBox 가 한 번의 패스에서 새로운 경계와 일치하게 됩니다. |
RegenerateAppearance() | RegenerateAppearance 은(는) /AP/N 가 현재 속성에서 다시 빌드되도록 강제합니다. |
StartLineEnding() → LineEndingStyle | StartLineEnding 은(는) 라인 시작에 적용된 스타일을 반환합니다. |
EndLineEnding() → LineEndingStyle | EndLineEnding는 라인의 끝에 적용된 스타일을 반환합니다. |
SetStartLineEnding(s: LineEndingStyle) | SetStartLineEnding는 시작 측 라인 종료 스타일을 설정합니다. |
SetEndLineEnding(s: LineEndingStyle) | SetEndLineEnding는 끝 측 라인 종료 스타일을 설정합니다. |
InteriorColor() → *Color | InteriorColor는 /IC 채우기 색상을 반환합니다 (채워진 라인 종료에 사용: ClosedArrow, RClosedArrow, Square, Circle, Diamond). |
SetInteriorColor(c: *Color) | SetInteriorColor는 /IC를 RGB 배열로 씁니다; nil은 항목을 제거합니다. |
LeaderLineLength() → float64 | LeaderLineLength는 /LL 값을 반환합니다 (없으면 0). |
SetLeaderLineLength(l: float64) | SetLeaderLineLength는 /LL을 씁니다. |