GetCursorKind Method
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Returns the cursor kind for a certain location in a document.
Syntax
public CursorKind GetCursorKind(Point viewLocation);Public Function GetCursorKind(viewLocation As Point) As CursorKindParameters
| 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 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}");Dim result = view.GetCursorKind(New System.Drawing.Point(20, 20))
Console.WriteLine($"Get Cursor Kind result: {result}")