THotPDF.SetLoadedAnnotationBorderStyle Method
Writes the annotation /BS border-style dictionary and removes the legacy /Border entry
Declaration
procedure SetLoadedAnnotationBorderStyle(PageIndex, AnnotationIndex: Integer; Width: Single; Style: THPDFAnnotBorderStyle; const DashPattern: array of Single);Parameters
PageIndexis the zero-based loaded page indexAnnotationIndexis the zero-based annotation index on that pageWidthis the border width in pointsStyleselects solid, dashed, bevelled, inset, or underlined outputDashPatternsupplies alternating dash and gap lengths forabsDashed
Usage notes
- Non-positive dash lengths are ignored
- A dashed style with no remaining positive lengths uses the default pattern
[3] - The edit invalidates only the affected page's cached DPI variants and persists through incremental saving
- Invalid indexes leave the loaded document unchanged
Related APIs
SetLoadedAnnotationColor · SetLoadedAnnotationRect · Loaded document toolkit