# TextControl.PointFromDocument Method

> Converts a Point in document coordinates, which are in twips relative to the top-left corner of the whole document, into a Point that represents the current coordinate system of the TextControl.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 25.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.PointFromDocument Method
- **440 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/pointfromdocument-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/pointfromdocument-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/pointfromdocument-method/llms-full.txt

---

### Description

Converts a Point in document coordinates, which are in twips relative to the top-left corner of the whole document, into a Point that represents the current coordinate system of the TextControl.

### Syntax

```csharp
public Point PointFromDocument(Point point);
```

```vbnet
Public Function PointFromDocument(point As Point) As Point
```

### Parameters

| Parameter | Description |
|---|---|
| point | Specifies a point in document coordinates. |

### Return Value

The return value specifies the converted Point that represents the current coordinate system of the TextControl.

### Examples

The following example uses Point From Document in a focused Text Control workflow.

```csharp
var result = textControl.PointFromDocument(new System.Windows.Point(20, 20));
Console.WriteLine($"Point From Document result: {result}");
```

```vbnet
Dim result = textControl.PointFromDocument(New System.Windows.Point(20, 20))
Console.WriteLine($"Point From Document result: {result}")
```

---

## Nearby

- **Previous:** [TextControl.PermanentControlChars Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/permanentcontrolchars-property/llms-full.txt)
- **Next:** [TextControl.PointToDocument Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/pointtodocument-method/llms-full.txt)
