# LineTo Class

> A lineto operator, which draws a straight line.

- Product: Adobe PDF Library 18
- Language: .NET Framework
- Version: APDFL18.0.5PlusP2a
- HTML page: https://docs.datalogics.com/apdfl18/DotNetFramework/APDFL18.0.5PlusP2a/class/LineTo
- Version index: https://docs.datalogics.com/apdfl18/DotNetFramework/APDFL18.0.5PlusP2a/llms.txt

```csharp
class LineTo : Segment
```

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

**Inherits from:** [`Segment`](https://docs.datalogics.com/apdfl18/DotNetFramework/APDFL18.0.5PlusP2a/class/Segment.md)

## Description

A lineto operator, which draws a straight line.

A lineto operator creates a line path element. It draws a straight line from the current position (MoveTo) to a new position-a new set of (x,y) coordinates: MoveTo{x:0 y:50} LineTo{x:100 y:100}

**Referenced by:** [`LineTo`](https://docs.datalogics.com/apdfl18/DotNetFramework/APDFL18.0.5PlusP2a/class/LineTo.md)

**Uses types:** [`LineTo`](https://docs.datalogics.com/apdfl18/DotNetFramework/APDFL18.0.5PlusP2a/class/LineTo.md), [`Point`](https://docs.datalogics.com/apdfl18/DotNetFramework/APDFL18.0.5PlusP2a/class/Point.md)

## Constructors

### LineTo

```csharp
Datalogics.PDFL.LineTo.LineTo(double x, double y)
```

*constructor*

**Parameters**

- `x` (`double`)
- `y` (`double`)

Move to a new current point. Append a straight line segment from the current point to the point (x, y). The new current point is the point the line is drawn to.

### LineTo

```csharp
Datalogics.PDFL.LineTo.LineTo(Point lineToPoint)
```

*constructor*

**Parameters**

- `lineToPoint` ([`Point`](https://docs.datalogics.com/apdfl18/DotNetFramework/APDFL18.0.5PlusP2a/class/Point.md))

Create a line to a new point. Append a straight line segment from the current point to the lineToPoint. The new current point is the point the line is drawn to.

## Properties

### Point

```csharp
Point Datalogics.PDFL.LineTo.Point { get; set; }
```

The new current point.

## Methods

### Dispose

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

**Returns:** `void`

### ToString

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

**Returns:** `override string`
