# ClosePath Class

> An operator that completes a vector shape, drawing a line from the first point to the last point.

- Product: Adobe PDF Library 21
- Language: .NET Framework
- Version: APDFL21.0.0PlusP1e
- HTML page: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/ClosePath
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/llms.txt

```csharp
class ClosePath : Segment
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** [`Segment`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Segment.md)

## Description

An operator that completes a vector shape, drawing a line from the first point to the last point.

A path is a series of commands that define the boundary of a vector shape. The ClosePath command draws a line from the current location back to its starting point, effectively closing a box or parabolic shape on a page.

## Constructors

### ClosePath

```csharp
Datalogics.PDFL.ClosePath.ClosePath()
```

*constructor*

Close the current subpath by appending a straight line segment from the current point to the starting point of the subpath. If the current subpath is already closed, ClosePath does nothing.

This segment terminates the current subpath. Appending another segment to the current path begins a new subpath, even if the new segment begins at the endpoint reached by the ClosePath operation.

## Methods

### Dispose

```csharp
void Datalogics.PDFL.Segment.Dispose()
```

**Returns:** `void`

### ToString

```csharp
override string Datalogics.PDFL.ClosePath.ToString()
```

**Returns:** `override string`
