# DrawingFrame.Refresh Method

> Refreshes the drawing.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.DataVisualization`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.DataVisualization > DrawingFrame.Refresh Method
- **601 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/drawingframe/refresh-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/drawingframe/refresh-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/drawingframe/refresh-method/llms-full.txt

---

### Description

Refreshes the drawing.

### Syntax

#### Refresh()

Refreshes the complete drawing. Programmatic changes performed with the drawing's properties and methods are not automatically refreshed. Calling this method is not necessary, when the drawing frame's layout in the text is changed.

```csharp
public void Refresh();
```

```vbnet
Public Sub Refresh()
```

#### Refresh(Rectangle)

Refreshes the specified part of drawing. Programmatic changes performed with the drawing's properties and methods are not automatically refreshed. Calling this method is not necessary, when the drawing frame's layout in the text is changed.

```csharp
public void Refresh(Rectangle clipRectangle);
```

```vbnet
Public Sub Refresh(clipRectangle As Rectangle)
```

| Parameter | Description |
|---|---|
| clipRectangle | Specifies the rectangular part of the drawing to refresh, in pixels, relative to the top-left corner of the drawing. |

### Examples

The following example uses Refresh in a focused Drawing Frame workflow. The created object is then available to the surrounding document workflow.

```csharp
drawingFrame.Refresh(new System.Drawing.Rectangle(20, 20, 600, 400));
Console.WriteLine("Drawing Frame is ready for use.");
```

```vbnet
drawingFrame.Refresh(New System.Drawing.Rectangle(20, 20, 600, 400))
Console.WriteLine("Drawing Frame is ready for use.")
```

---

## Nearby

- **Previous:** [DrawingFrame.ExportResolution Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/drawingframe/exportresolution-property/llms-full.txt)
- **Next:** [DrawingFrame.SaveMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/drawingframe/savemode-property/llms-full.txt)
