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

# Shape

## Overview

`Shape` is a class in Aspose.PDF FOSS for .NET.

Base class for drawable shapes.

This class provides 1 method for working with Shape objects in .NET programs.
Available methods include: `CheckBounds`.
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 |
|-----------|-------------|
| `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/)