---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/Curve
---

# Curve

## Overview

`Curve` is a class in Aspose.PDF FOSS for .NET.
Inherits from: `Shape`.

A Bézier curve shape.

This class provides 3 methods for working with Curve objects in .NET programs.
Available methods include: `CheckBounds`, `Curve`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `Cx1`, `Cx2`, `Cy1`, `Cy2`, `GraphInfo`, `PositionArray`, and 5 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `X1` | `double` | Read/Write | Gets or sets the x1. |
| `Y1` | `double` | Read/Write | Gets or sets the y1. |
| `Cx1` | `double` | Read/Write | Gets or sets the cx1. |
| `Cy1` | `double` | Read/Write | Gets or sets the cy1. |
| `Cx2` | `double` | Read/Write | Gets or sets the cx2. |
| `Cy2` | `double` | Read/Write | Gets or sets the cy2. |
| `X2` | `double` | Read/Write | Gets or sets the x2. |
| `Y2` | `double` | Read/Write | Gets or sets the y2. |
| `PositionArray` | `float[]` | Read/Write | Curve control points as [x1, y1, cx1, cy1, cx2, cy2, x2, y2]. |
| `GraphInfo` | `Aspose.Pdf.GraphInfo` | Read/Write | Gets or sets the graph info. |
| `Text` | `Aspose.Pdf.Text.TextFragment?` | Read/Write | Optional text label rendered with the shape. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Curve(x1: double, y1: double, cx1: double, cy1: double, cx2: double, cy2: double, x2: double, y2: double)` | Create a cubic Bézier curve from (x1,y1) to (x2,y2) with control points (cx1,cy1) and (cx2,cy2). |
| `Curve(positionArray: float[])` | Constructor matching the public API: Curve(float[] positionArray) where positionArray = [x1, y1, cx1, cy1, cx2, cy2, x2, y2]. |
| `CheckBounds(containerWidth: double, containerHeight: double)` | Whether every control point lies within the container's origin-anchored AABB. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)