# View.GetCursorKind Method

> Returns the cursor kind for a certain location in a document.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > View.GetCursorKind Method
- **449 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/view/getcursorkind-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/view/getcursorkind-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/view/getcursorkind-method/llms-full.txt

---

### Description

Returns the cursor kind for a certain location in a document.

### Syntax

```csharp
public CursorKind GetCursorKind(Point viewLocation);
```

```vbnet
Public Function GetCursorKind(viewLocation As Point) As CursorKind
```

### Parameters

| Parameter | Description |
|---|---|
| viewLocation | Specifies the location for which the cursor kind is returned. The coordinates must be in pixels with an origin at the top-left corner of the view's location. |

### Return Value

The return value specifies the kind of the cursor at the specified location. It can be one of the [CursorKind](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/cursorkind/enumeration/llms-full.txt) values.

### Examples

The following example retrieves cursor kind from the view.

```csharp
var result = view.GetCursorKind(new System.Drawing.Point(20, 20));
Console.WriteLine($"Get Cursor Kind result: {result}");
```

```vbnet
Dim result = view.GetCursorKind(New System.Drawing.Point(20, 20))
Console.WriteLine($"Get Cursor Kind result: {result}")
```

---

## Nearby

- **Previous:** [View.Changed Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/view/changed-event/llms-full.txt)
- **Next:** [View.GetImage Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/view/getimage-method/llms-full.txt)
