DocumentToClient Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Computes coordinates in twips relative to the top-left corner of the document into client coordinates.
Syntax
DocumentToClient(Point)
Computes the specified point in twips into client coordinates.
public Point DocumentToClient(Point point);Public Function DocumentToClient(point As Point) As Point| Parameter | Description |
|---|---|
| point | Specifies a document point which client coordinates are computed. |
DocumentToClient(Rectangle)
Computes the specified rectangle in twips into client coordinates.
public Rectangle DocumentToClient(Rectangle rectangle);Public Function DocumentToClient(rectangle As Rectangle) As Rectangle| Parameter | Description |
|---|---|
| rectangle | Specifies a document rectangle which client coordinates are computed. |
Return Value
The return value specifies the computed client point or rectangle.
Examples
The following example converts a document-coordinate point to client coordinates.
var result = textControl.DocumentToClient(new System.Drawing.Point(20, 20));
Console.WriteLine($"Document To Client result: {result}");Dim result = textControl.DocumentToClient(New System.Drawing.Point(20, 20))
Console.WriteLine($"Document To Client result: {result}")