This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /api/csharp/editors/pdf/annotations/pdf-line-annotation.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. PdfLineAnnotation

Represents a line annotation.

using Nutrient;

Inherits from: PdfShapeAnnotation

The SDK creates this class through factory methods or other SDK objects.

Properties

EndCap

public PdfLineEndingStyle EndCap { get; set; }

The line ending style at the end of the line.

Type: PdfLineEndingStyle

EndPoint

public Vec2f? EndPoint { get; set; }

The end point of the line.

Type: Vec2f?

StartCap

public PdfLineEndingStyle StartCap { get; set; }

The line ending style at the start of the line.

Type: PdfLineEndingStyle

StartPoint

public Vec2f? StartPoint { get; set; }

The start point of the line.

Type: Vec2f?

Resource management

public void Dispose()

PdfLineAnnotation implements IDisposable. Call Dispose() or use a C# using declaration to release its native handle right away. If you don’t, the handle is released when the object is garbage collected.