TX Text Control .NET Server

GetCursorKind Method

Method|Introduced in 21.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

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

Syntax

public CursorKind GetCursorKind(Point viewLocation);

Parameters

ParameterDescription
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 values.

Examples

The following example retrieves cursor kind from the view.

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