PointFromDocument Method
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
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
public Point PointFromDocument(Point point);Public Function PointFromDocument(point As Point) As PointParameters
| 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.
var result = textControl.PointFromDocument(new System.Windows.Point(20, 20));
Console.WriteLine($"Point From Document result: {result}");Dim result = textControl.PointFromDocument(New System.Windows.Point(20, 20))
Console.WriteLine($"Point From Document result: {result}")