LineAnnotation

Vue de l’ensemble

‘LineAnnotation’ est un type dans Aspose.PDF FOSS pour Go.

LineAnnotation tire une ligne droite entre deux points, avec des finitions de la ligne facultatives sur chaque bout (roues, cercles, etc.

Ce type fournit 15 méthodes pour travailler avec les objets LineAnnotation dans les programmes Go. Les méthodologies disponibles comprennent: ‘AnnotageType’, ‘End’ , ’ EndLineEnding’, InteriorColor', ‘LeaderLinLength’, 'RegenerateAppearance', ’SetBorderWidth', ‚SetEnd, ‘Set EndSlimming’, ‘‘SetIntericalColore’, ‘’SetLeadLinenLongth‘, SetStart et 3 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Go après l’installation de l’Aspouse.PDF FOSS pour le package Go .

méthodes

SignatureDescription
AnnotationType()AnnotationTypeReturns the annotation type.
Start()PointStart returns the line’s start point.
End()PointEnd returns the line’s end point.
SetStart(p: Point)SetStart updates the line’s start point and recomputes /Rect.
SetEnd(p: Point)SetEnd updates the line’s end point and recomputes /Rect.
SetBorderWidth(w: float64)SetBorderWidth overrides drawingAnnotationBase.SetBorderWidth so /Rect (which depends on BorderWidth via line-ending padding) is recomputed before /AP/N regenerates — ensuring the appearance stream’s /BBox matches the new bounds in a single pass.
RegenerateAppearance()RegenerateAppearance forces /AP/N to be rebuilt from current properties.
StartLineEnding()LineEndingStyleStartLineEnding returns the style applied to the start of the line.
EndLineEnding()LineEndingStyleEndLineEnding returns the style applied to the end of the line.
SetStartLineEnding(s: LineEndingStyle)SetStartLineEnding sets the start-side line-ending style.
SetEndLineEnding(s: LineEndingStyle)SetEndLineEnding sets the end-side line-ending style.
InteriorColor()*ColorInteriorColor returns the /IC fill color (used for filled line endings: ClosedArrow, RClosedArrow, Square, Circle, Diamond).
SetInteriorColor(c: *Color)SetInteriorColor writes /IC as an RGB array; nil removes the entry.
LeaderLineLength()float64LeaderLineLength returns the /LL value (0 if absent).
SetLeaderLineLength(l: float64)SetLeaderLineLength writes /LL.

Voir aussi

  • Aspose.PDF — Résultats de l’API d’entreprise
 Français