# Shape.CanFitToCanvas Property

> Gets a value which indicates whether the FitToCanvas method can be used or not.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Drawing > Shape.CanFitToCanvas Property
- **293 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/canfittocanvas-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/canfittocanvas-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/canfittocanvas-property/llms-full.txt

---

### Description

Gets a value which indicates whether the [FitToCanvas](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/fittocanvas-method/llms-full.txt) method can be used or not.

### Syntax

```csharp
public bool CanFitToCanvas { get; }
```

```vbnet
Public ReadOnly Property CanFitToCanvas As Boolean
```

### Examples

The following example checks can fit to canvas before performing the related operation.

```csharp
if (shape.CanFitToCanvas)
{
    shape.FitToCanvas();
}
```

```vbnet
If shape.CanFitToCanvas Then
    shape.FitToCanvas()
End If
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [Shape.Bounds Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/bounds-property/llms-full.txt)
- **Next:** [Shape Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/constructor/llms-full.txt)
