# CurveToY Class

> A curveto operator where the second control point matches the end 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/CurveToY
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/llms.txt

```csharp
class CurveToY : Segment
```

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

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

## Description

A curveto operator where the second control point matches the end point.

Here the new current point is the end point in the curve.

The name CurveToY is drawn from the "Y" path construction operator.

**Uses types:** [`Point`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Point.md)

## Constructors

### CurveToY

```csharp
Datalogics.PDFL.CurveToY.CurveToY(double x1, double y1, double x3, double y3)
```

*constructor*

**Parameters**

- `x1` (`double`): The x-coordinate of the first control point.
- `y1` (`double`): The y-coordinate of the first control point.
- `x3` (`double`): The x-coordinate of the new current point.
- `y3` (`double`): The y-coordinate of the new current point.

Append a cubic Bézier curve to the current path. The curve extends from the current point to the point (x3, y3), using (x1, y1) and (x3, y3) as the Bézier control points. The new current point is (x3 ,y3).

### CurveToY

```csharp
Datalogics.PDFL.CurveToY.CurveToY(Point point1, Point point3)
```

*constructor*

**Parameters**

- `point1` ([`Point`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Point.md)): the first control point.
- `point3` ([`Point`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Point.md)): the new current point.

Append a cubic Bézier curve to the current path. The curve extends from the current point to point3, using point1 and point3 as the Bézier control points. The new current point is point3.

## Properties

### Point1

```csharp
Point Datalogics.PDFL.CurveToY.Point1 { get; set; }
```

The first control point.

### Point3

```csharp
Point Datalogics.PDFL.CurveToY.Point3 { get; set; }
```

The new current point.

## Methods

### Dispose

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

**Returns:** `void`

### ToString

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

**Returns:** `override string`
