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

# DrawingPath

## Overview

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

A path shape composed of move, line, and curve segments.

This class provides 5 methods for working with DrawingPath objects in .NET programs.
Available methods include: `CheckBounds`, `Close`, `CurveTo`, `LineTo`, `MoveTo`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `GraphInfo`, `Text`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `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 |
|-----------|-------------|
| `MoveTo(x: double, y: double)` | Calls MoveTo on this DrawingPath instance. |
| `LineTo(x: double, y: double)` | Calls LineTo on this DrawingPath instance. |
| `CurveTo(cx1: double, cy1: double, cx2: double, cy2: double, x: double, y: double)` | Calls CurveTo on this DrawingPath instance. |
| `Close()` | Calls Close on this DrawingPath instance. |
| `CheckBounds(containerWidth: double, containerHeight: double)` | Whether this shape lies within a containerWidth×containerHeight box anchored at the origin. |

## See Also

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